clean up messagehandler a bit

remove unused cruft. rename registerSender function to
createRegisterMessage to reflect that it really only creates that message.

Jira-issue: http://jira.webinos.org/browse/WP-850