Move rake tasks into rakelib

Rake will automatically load the contents of the rakelib directory if
present.