Implement asynchronous notification support

A decent first pass on #19, but there really needs to be better support
for polling for notifications than making a query and calling next()
every once in a while.