Fixes for jshint

Conflicts:
	inst/www/shared/shiny.js
Add general method for message handlers
Convert existing message handlers to use new method
Play back message handlers in order they were added
Add back custom message handler
fix
Rename to addMessageHandler