Add support for SIGHUP config reloading

Fixes #5.