better errors for http responses.

includes a status code
updates to the resource class.

better uri generation and method mapping via dispatch
including debug module into package