Update to use new couch_event application
Use a private record for the callback state
Merge pull request #90 from cloudant/17702-import-couch-event

Update to use new couch_event application