Moved templates
Added cache to tests, fixed cache-sensitive tests
#362: User auth done