Miscellaneous refactoring. Autofac, WebSecurity.
Misc changes applied. Fixed lots of bugs. Improved functionality.