Made changes in identity lookup logic.
Merge branch '20130408-javascript' of github.com:openpeer/opios into 20130408-javascript