Overwrite mode improvements

Merged https://github.com/adobe/brackets/pull/6670 and https://github.com/adobe/brackets/pull/6328 as requested.
Waiting for review.
@redmunds