Add helper functions for is method testing
Allow the default route to be changed
Allow access to request from views