wrap most functions in a class

Some function left out of the class since they have no use for a
context:

- getVersionExtensions()
- decomposeVersion()
- versionToBranch()

Change-Id: Ic4d4e2850ae3f05b48de669b1ed46e9c87a9c99d