rework format listener configuration to allow config by path/host

probably makes #30 somewhat obsolete and fixes #335


/cc @seldaek