Change config file to have handlers outside and locations inside
Fix up the handler interface and add some comments.