Don't rely on ``request.path`` or ``request.path_info`` to determine single vs list of resources

Fixes #850.
Instead of using path to determin if we are dehydrating a list of resources or a single resource, we explicitly pass a boolean.

This should also make writing tests easier as we no longer need to have path defined for requests.