Explicitly include resources inside build artifact
Reworked callback handling

- Reimplemented callback matching to have multiple callback functions
- Added require callback for CommonJS resolving