Initial commit.

Extended functionality to support branches again.