Added message result API.

Should work in same way as described https://gist.github.com/mandric/10280606

First enable task checking and message result API in settings.