Fix premailer

:fork_and_knife: This fixes premailer-rails from throwing a 500 error every time an email is sent :smile: Premailer-rails requires either nokogiri or hpricot as a dependency so this adds nokogiri. Also made a few other fixes as described in the commit messages that were found while trying to run the application in production locally.