Support for multiple entries per book

This is a huge one, and there wasn't really any way to do this in chunks
that didn't just break everything related to entries, so have one giant
commit.

Fixes #109.