Added function to check whether a route has a given HTTP method

Because otherwise is is very difficult for a controller to determine
whether it is just a page request, or if data is being posted. Now
that can be tested with a call to (Route::getCurrentRoute()->hasMethod('GET')