Add Device.get_persistence_mode

Signed-off-by: John Else <john.else@citrix.com>
Remove trailing whitespace

Signed-off-by: John Else <john.else@citrix.com>