Add realm support

/to @ritch 
/cc @bajtos @dashby3000 
I am concerned about encoding realm into e-mail address and username, as the `realmDelimiter` may be a valid email/username character.

What is the use-case/scenario where you have to encode the realm into login/username and cannot provide it in its own field instead?