Auto build new tags when pushed.

Add tests for this and the stable version code.
Merge pull request #1046 from rtfd/autobuild-tags

Auto build new tags when pushed.