Add the rakefile to the project

This translates all the bash scripts into rake tasks