Respond to REST methods not path names. some cleanup.