preferences: added stub for preferences dialog

We have a working base for it now.