Improved the scripts used for preparing branches for release
Added repository upgrade script
MDLSITE-2009 Clarify paths

- Ensure that gitmirror exists.
- Ensure all operations happen there.
MDLSITE-2009 better process ordering.

It's desirable to always follow the "master first,
then stables from older to newer" rule when creating
the new commits. Commit dates are as package dates and
they have implications about how sourceforge displays them.
MDLSITE-2009 integration is origin in gitmirror
MDLSITE-2009 prevent shell error, orphaned command.
Merge pull request #1 from stronk7/clarify_paths

MDLSITE-2009 Clarify paths
Very nice thanks Eloy!
MDLSITE-2009 improved the update script

* Now conditionally updates things.
* Is safe to run over and over again
MDLSITE-2009 missing branches now created during execution
MDLSITE-2009 add bitbucket push url (new mirror)
Merge pull request #7 from samhemelryk/improved-pushes

Improved pushes
Merge pull request #8 from stronk7/bitbucket_mirror

MDLSITE-2009 add bitbucket push url (new mirror)
MDLSITE-2009 Implement on-demand & on-sync types

They only apply to master branch.

- Custom commit messages.
- on-demand advances to current date.
- on-sync increments +1.00
- commented some code that caused master version
  to become out of sync after major release (violating on-sync)
  that needs to be changed to something else only modifying $release.
- TODO: Ensure that on-demand happens only in beta & rc status.
- TODO: Ensure that on-sync happens only in dev status.
Merge pull request #9 from stronk7/ondemand_and_onsync

MDLSITE-2009 Implement on-demand & on-sync types
NOBUG: option to discard local changes (--reset)
NOBUG: Improve build date calculations.

Without this change, the build date for any
release is always assumed to be today (in YYYMMDD format).

But that's not always true, especially for major and minor releases.

So this introduces a new --date option to force any build date and
also modifies the default calculations for major and minor releases moving
from today to next monday (that is when all releases happen, no matter they
are ready in git since some days before).

Note the new --date option has precedence over any calculation.
Merge pull request #11 from stronk7/minor_changes

Some changes performed while doing minors...
NOBUG: Set default timezone to Australia/Perth.
NOBUG: Added --show option to display changes.
NOBUG: Allow rcs (and others) to come from + versions.

Before the patch it was required for rc to come from
dev/beta without any "+". Same for majors. Now both
support coming from a previous "+" version.