Add support for config file.
Switch to epoll.

Signed-off-by: Johan Kristell <jk@jott.se>