fixing issue 6121 by introducing flag denoting whether we're already trying to save a document
adding couple of comments for readability
adding unit test to verify that a saved untitled document can be saved again without prompting for Save As
updating unit test to reflect issue
moving cleanup to .always() per code review
Merge remote-tracking branch 'origin/master' into bchin/issue-6121
Guard against cases where an extension has set the fragment part of the
page URL (some MVC frameworks do this automatically) - this prevents Reload
from actually refreshing the page, but it will get far enough to delete the
menu bar contents, leaving Brackets broken until a full quit-restart cycle.
Merge pull request #7083 from adobe/bchin/issue-6121

Fixed issue #6121 - "Hitting Cmd-S immediately after saving an untitled file does another save as"
Merge pull request #7319 from adobe/pflynn/reload-fragment-guard

Prevent Reload from being blocked by URL fragments