[jan] Add remoteHost() to Horde_Test_Stub_Registry.
Make sure that $user_prefs is always defined when necessary.

Bug: 13731