OZP-64: preferences API bugfixes

Documentation no longer states that scope is part of returned
object.

deleteUserPreference now calls getPreference before calling
deletePreference so that it can return info about the prior value
OZP-64: Preferences legacy functional tests