Adds yaml support for custom router configuration