Updated bake templates to use CakeRequest::allowMethod()