Attempts at making the site happy for use on heroku

I added some gems to make heroku happy.

And tried to move javascript to another place. But the home / communities page doesn't show assets. The entire rest of the site works fine though.