Move all rake tasks into classes

I have no idea if this actually still works (trouble getting mysql to play nice at the moment).

But, this is at least a good start to moving the content of the rake tasks into logical classes that can be reused (and maybe later tested :-).

Hope this helps!