Several fixes to make drex suitable for npm

- Correct usage of npm's "main" directive in package.json
- Resolve the path before attempting to require the module
- Tidy up some formatting and stray files