Refactored some IoC-wiring to factories.
Removed ef-mapping discovery code.
Further work on authentication.