Add versioning on both Android and iOS. Asynchronous delete when updating version.

Refactor mainly on Android.