Implemented logout. Not happy with the templates; the same code is in too many places - makes it difficult to maintain. Template engine should support inserting external HTML file, but there may be better ways to handle it than that.