Modified methods for saving model.

Now using static methods in class Task; these methods store and load a
std::list of tasks.