Refactor PasswordService.put method.

Move code for creating and updating entries into two separate methods:
PasswordService.create and PasswordService.update.
Use the persistableProperties array to create diffs.

When updating an entry, the persistableProperties array should be used to create
the diff (Used for undoing/redoing things).