WIP: refactor router, plugins, and haproxy