Refactored Auth and CsrfToken services and usage of those.
Refactored controller code.
Refactored some layouts and actual tbTemplate directive.
Updated application styles.