Update for Heroku
Tidy up the code, and--importantly--redirect to /, not /signin, on logout :)