Store isDir in the stat data

This should make some fs functions significantly faster, but we'd need to remove the transitioning code to actually enable all the speed-ups.
This is fine, and safe, although I wonder if it's necessary. Depending on the details of how IndexedDB processes transactions, it may be impossible for the callback to get the stat struct before it gets removed, as the read transaction may block while the write transaction completes.