logout fix

- fixes navigator.id.logout() to logout of realm
- tests for storage.realmInfo
- code style change for lib/realm
- comments
- realm no longer can include port
- consolidating fixupIssuer and fixupRealm