JWT and Preferences

Added JWT support via server.js.
Loading a book now loads preferences using JWT with fallback to basic auth (hardcoded defaults for now).
Refactoring/cleanup.
Last Paragraph is saved to server every 10 seconds.