login: Rework templates

Split the login form from the main views file.
login: More work on templates
models: Refine and test the model
Added a test on find_project_nam
Added test on mailparse.mail_date
Git ignore venv & app.db
Requirements.txt updated