Revert "Add support for optional route parameters."

This reverts commit e172ae7a2089005e0d2dc79318a695964631d611.
Add previous route params. Closes gh-537, closes gh-716.