Add realm support
Merge pull request #660 from strongloop/feature/add-realm-support

Add realm support