Make it possible to change OptionsPage storage

Added a setStorage() method to OptionsPage which switches which storage
object it uses and updates all elements on the page.

Additionally, fixed a problem with transform functions that made them
not work.