Set variable defaults to fix PHP notices.
Added the ability to set requirements for a route.