MOBILE-478 Add support for the File API (Node.js)

https://tracker.moodle.org/browse/MOBILE-478

I also made some changes for debugging in Node WebKit