MOBILE-475 Detect NodeWebkit and load the Node.js emulator API

https://tracker.moodle.org/browse/MOBILE-475

For more information about NodeWebkit see: https://tracker.moodle.org/browse/MOBILE-473