Versioned formats

As discussed on the mailing list this branch adds some version checking for the persistent stores in geogit