fixed several issues in login procedure. added several security hacks that MUST be removed after bb10 release
Merge branch '20121212-json-provisioning' of https://github.com/openpeer/op into 20121212-json-provisioning