Adds a sqlite database for storage.

- Books are added to a local database, instead of scraping
  the filesystem for books. So now much faster.
- Paths are normalised before writing the files.
- Simplifies books, devices and the library.