pass path to node_modules to module loading funcs

fixes loading api modules that are installed with npm link.

Jira-issue: [WP-1018](http://jira.webinos.org/browse/WP-1018)