Integerate callout into eventloop.
Various fix for backend().

Move seteval(max) to appropriate place, and cleanup event.h .