added migration from 0.* to 0.6

I added a general migration mechanism that can be used for other changes in the future. Not sure if it has the correct shape, but for this case it works. We may need to add support for working with the protobuf objects directly later.