Add API WampHandler.onDone for convenience.
Refactor WampHandler's internals a bit.
Add some cheap comments.