Implemented pushFile for iOS controller

Basic implementation of pushFile for iOS
we have a bunch of sync logic between here and `fs.closeSync(fd)` that could in principle blow up, so I'd wrap it all in a try/catch, and call back with the error if it shows up.

Otherwise we'll get an unhandled exception.