Refactors some html sections.  Adds logout in appropriate places.  Takes steps towards integrating ActiveMailer.