pass path to node_modules to module loading funcs

fixes loading api modules that are installed with npm link.

Jira-issue: WP-1018
Merge pull request #7 from aldafu/WP-1018-fix-loading-npm-linked-modules

pass path to node_modules to module loading funcs