Update resources with various improvements

- Support empty path.
- Correct slug query.
- More support for formats.