Map resource

Adds a `map_resource()` function that takes the URL of an endpoint as the first arg, the resource class as the second, and passes along `**kwargs`.

Resolves #299.