Implemented logic for HTTP 405, plus more encapsulation of the Routes handling.