Fixed switching perspectives by hotkeys.
Fixed config saving in thread. start_new_thread replaced by gobject.idle_add()
Some small fixes.