Added Service Locator
Clear entity manager
Hash passwords
Minor changes