Converting to TypeScript

The TypeScript version of BrowserFS is finally at feature-parity with the CoffeeScript version. :smile: