fixed several small issues with identity login
Merge branch '20121212-json-provisioning' of https://github.com/openpeer/op into 20121212-json-provisioning