release notes: Get ready for 1.22 release.
build: Set 'stable' or 'development' in commit tag automatically.

This sets two macros: BRANCH_NUMBER and BRANCH_TYPE.
Version 1.22.0.