Use getLocalUser in Query.
Fix factory.
Merge pull request #261 from greboid/awaymessages

Use getLocalUser in Query.
Merge pull request #260 from csmith/master

Remove some parseHostmask/parser usages
Make Query use Users better.

Also remove some more parseHostname calls.