Migrations

Added a bunch of rails stuff to make rake:migrate and those things work