Cleanup imports

- changed compare passwords directive so it works better 
- Added BridgeContext and environment switch to change Spring app context
- Simplified stub code based on environment facilities