Basic untidy listener daemon.

Needs reviewing, splitting up into class(es), and
testing.