Moved rake tasks out of lib.