Changes in AuthN libs and basic controller impl.
Small changes and refactoring, still WIP
Working impersonation impl.
Minor refactoring in layouts
Merge pull request #1 from arax/impersonation

Impersonation impl.