Daemon polling loop

Basic infrastructure, poll() is the place to add all of the required
operations.