Moved most preferences to bindings system. Lots of glue code removed.