logout and move js to js/lib
login in reveal, better locals