Added support for custom message listener

Also, added an appveyor listener