Using the File API without callbacks

So, it’s pretty much a given that working with the HTML5 API is a painful experience due to all those levels of callbacks. Even a simple operation turns into something unnecessarily complex, and so I present FileManager — a simple wrapper around frequently used portions of the File API that uses Promises (or Q.js, specifically).