Implemented auto migration for old password to new password

Implemented an automatic migration of a possible existing KeyStore with
the old hard coded password to a new one using the app provided
password.

Contribution made under the Apache License, Version 2.0
www.apache.org/licenses