Fix migrations.
Rails 12factor for heroku
add location detection