Allow defining routes in constructor options
Refactoring API for adding routes