Online and Adaptive Methods for Multitask Learning