Move preferences UI logic to new namespace.

codebot.ui.preferences.js is now the new home of all UI stuff related
to preferences.