Add releases metadata upgrade

Tests added. Downgrade will be done as separate patch if required

Closes-Bug: #1341505
Closes-Bug: #1341567

Change-Id: I49cc6a4ff3690677d904dce3398b67693b1c831c
Merge "Add releases metadata upgrade"