Remove and/or replace deprecated things. Fix some warnings. Add
preferences dialog to menu bar applet.