Fix support for nested resources, and add documentation. Bump version.