v2.7.2 & merge comparable changes from head
Allow to specify the release mode - NEVER, ALWAYS, WHEN_EMPTY
Merge branch 'v2.7.x' of https://github.com/bnewport/Samples.git into v2.7.x