heroku assets pre:compile
switches db to pg for heroku
modifications to ajax
modifies application.html
more modifications for establishing pg and sets up end point for photos