Make data transformations backwards-compatible and upgrade models

#954 improved the parametrization of the DataLayer and ImageDataLayer but broke
backwards compatibility and did not upgrade the model definitions.

This PR makes the upgrade automagic and updates the proto upgrade tool too.