Incorporate Alexandra's (emailed) changes:

* Replace separate functions for linear and logistic multitask with a
single one (with model as parameter)

* Use shotgun library for solving quadratic problems (instead of
quadprog library)