Fix Azure compatibility issue around stdin in Gruntfile.js
Fix TypeError when updating slug

- added check slug before trim
Hide role dropdown on user page if user is owner

Closes #3764
Validation fix for number of posts/page

closes #3641
- Reworded error messages, remove “please” (credits go to @YouriAckx)
Revert post status on failed save.

Refs #3667, Refs #3776
- If saving a post fails, revert its status back to the
  pre-save value.
- Added tests to check post status after failed save attempt
  on both new and existing posts.
Correct behavior on updating user slug.

No Issue
- Defer save until after slug is checked.
- If new slug is empty or all whitespace, reset to previous value.
- If new slug is the same as existing slug except for an increment
  value (e.g. ghost-user-2), use the original slug.
- If the slug has changed, change the URL path to reflect the
  change so that the browser refresh and back button still work.
- Added tests.
Improve documentation section in CONTRIBUTING.md
Open the e-mail sending support page in a new window.
Added target="_blank" to all links that go to the support page.
Merge pull request #3788 from jillesme/master

Open the e-mail sending support page in a new window.
Merge pull request #3769 from novaugust/iss3764

Hide role dropdown on user page if user is owner
Restore email templates in npm package

no issue

- apparently npmignore's globbing rules are different to grunts. The rule *.html has been interpretted as all html files and the email templates are missing from the npm package.
- this fix tells npm not to ignore email templates, so that they will be present in the next release
Display correct new Ghost version

closes #3790
Merge pull request #3670 from felixrieseberg/iss3641

Validation fix for number of posts/page
Merge pull request #3785 from jaswilli/post-status

Revert post status on failed save.
Merge pull request #3791 from ErisDS/issue-3790

Display correct new Ghost version
Ensure Owner's role isn't downgraded

closes #3765
- Simple API check to ensure that the owner isn’t downgraded to a
different role (analog to the ’can’t change your own role’ check)
- Test added to ensure Owner can't be downgraded to a lower role
Merge pull request #3775 from felixrieseberg/iss3765

Ensure Owner's role isn't downgraded
Implement new global-nav markup
Adding global app frame wrappers

This makes the new responsive styles work in a basic way. It'll probably need revisiting to break out the header area into a partial (maybe?)