add `module` support and path slugs

- `module` as first argument to resolve relative paths
- slugs defined on the primary export replaced in path: `{{HOME}}`