Many miscellaneous fixes from Peter's and Glenn's reviews
Merge branch 'glenn/file-system' of https://github.com/adobe/brackets into glenn/file-system