Adding support for the git plugin. Adding easy way to implement common serialisation