Implementation based on W3C file API http://www.w3.org/TR/2012/WD-file-system-api-20120417/