Added versioning of apps, and auto migration of offline userdata to online userdata