nmsg_io: backing out 32f98ebd472d851986bd97a20c3bb4d55977d227
nmsg_output: Better fix for issue #2, store reference in output obj.
Merge pull request #4 from hstern/master

Store reference to callback function in output object, not io object.