JavaScript-side of exponent's filesystem native module, based on https://github.com/johanneslumpe/react-native-fs