DDF-625: Code cleaned for the persistence commands.
Also added karaf.version properties in to the main platform pom and fixed formatting.