user preferences API
Preferences hooked up to server.

* Alert sound preference functional
* Enter/shift-enter preference functional
* Image auto-hide not implemented yet, pending that feature being merged.

Fixes #78.
Merge pull request #78 from bkad/preferences

User preferences