Use git:// instead of https://, and fix commit msg formatting.
Bugfix in bitbucket url...
Make download/upload scripts try git@bb first, then https://bb.

This should make the process smooth for developers and buildbot alike.
Update reference data scripts to handle more failure situations more
gracefully.

My bash skills are not very impressive, but this is not rocket science either.