Call #as_json when rendering JSON from objects responding to it

This is a common API for objects that have JSON representations, and
resolves circular reference issues with passing some ActiveRecord
models directly to `JSON.dump`.

Signed-off-by: Evan Owen <kainosnoema@gmail.com>
Add documentation

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
En-dash

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Update rescue_from docs to be more realistic

We automatically rescue from Crepe::Params-based exceptions, so no need
to suggest them in the docs.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>
Improve documentation for Crepe::Endpoint#head

The `head` method also takes an undocumented options hash that maps to
HTTP headers. Document this to make it more discoverable.

Signed-off-by: David Celis <me@davidcel.is>
Consistent documentation whitespace

Signed-off-by: David Celis <me@davidcel.is>
Merge pull request #41 from davidcelis/master

Improve documentation for Crepe::Endpoint#head
Update bad documentation

Rack Mount compiles expressions and constraints by path component, so
`^` and `$` should not be used.

Fixes #42.

Signed-off-by: Stephen Celis <stephen@stephencelis.com>