Removed bindings, code cleanup.

Moved PreferencesWindow to the 'ob.components' package.