Fix problem with profiling middleware (depends on auth middleware, but caused misleading error messaged)
Merge branch 'hotfix/profile_middleware'