Display current project name in main window

Supersedes #6878.

This implements #2281, displaying the project name in the Brackets window title.
Refactored. I implemented it as you suggested. IIRC, there are eventual plans to support editing without projects, so might as well future proof it now.