Factor out timer facilities into timer.[ch]. They are still just AF_TIMER sockets, but this makes it easier to replace them with something else, like NetBSD 5.2 timer_create or Linux timerfd.