Added a release task check to ensure the branch is master.

I added a check to the "release" Grunt task, ensuring the current branch is master before continuing the process. We could use a similar approach to validate other pre-release criteria. Let me know what you think.