some fixes
Merge branch 'master' of https://github.com/Fumler/www-p2
can login and logout without reloading page
Merge branch 'master' of https://github.com/Fumler/www-p2