Code cleanup. Compatibility with Orchard v1.7. Update to VS2012. Code fixes for Migrations when installing module for the first time