Gemfile and layout refactoring

* gemfile blocks for dev/prod/test, particularly for DB types (heroku)
* application.html.erb and sub-partial refactoring/renaming for clarity