Added logout functionality
Added a common template, and extend other views from that