Router refactor

- Remove haproxy router implementation
- Add template-based router implementation
- Refactor router plugin interface