add `module` support and path slugs

- `module` as first argument to resolve relative paths
- slugs defined on the primary export replaced in path: `{{HOME}}`
Merge pull request #2 from vesln/feature/module

Add `module` support and path slugs