relay: multiple updates

* add ability to deal with PM nick changes and quits
* cleanup code
* fix some bad logic