[refactor] put templates in views/templates/
[refactor] [add] csrf support
[minor]
[add] 404 and 500 error pages
[refactor][add] remember me during login