Implement account-notify, extended-join and WHOX

Also integrate it with NickAuth.

Closes #778.