Android settings prerequisite patch

Encapsulates operations on account properties
inside "registration" objects and extracted utility methods which can be
reused on Android.