Add ability to fetch callback return values

It may be useful to be able to return a value from a message callback, and adding this functionality seems simple enough. I suppose there may be more places return statements need be added, though.