clean up messagehandler a bit

remove unused cruft. rename registerSender function to
createRegisterMessage to reflect that it really only creates that message.

Jira-issue: WP-850