Prefs on login

Adds a preferences button next to quit on the login screen.

Apologies for the extraneous commits in master; I can try some rebase-fu to isolate this branch if needed.