Starting to implement authentication, plus some template refactoring
Adding in session and extra template files