fix 274: return 405 instead of just 404.
fix 1129: 405 response needs accept headers. Added check to existing 405 tests.
fix 1130: we were returning 405 in cases that should be 404, eg when there was no valid action at all for the URL (this is easy to happen with {action} routing).