Improve release script

Add comments, auto-detect upstream remote, and update changelog
Merge pull request #1208 from nylen/improve-release-script

Improve release script