rails halt and check_required_params

this introduces some rather useful controller methods for those who are for whatever reason using rails for HTTP APIs 

- check_required_params
- halt
- halt_error
- halt_bad_request
- halt_unprocessable_entity