cosmetic changes to dispatcher
implemented 'cleanup' for xmpp platform
Merge pull request #9 from nilclass/platform-cleanup-function

Platform cleanup function