Re-organize config structure - support custom route templates