Added middleware implementation for auth support. To be completed callbacks for real DB actions processed
Merge remote-tracking branch 'origin/alex-auth-tests' into alex-auth-tests