Add analytics and intercom to session layout
Update rails to latest release

This is to address several security vulnerabilities reported for Rails
Upgrade pg and drop unicorn