Refactored sections and background images

We now use tags to designate which section a passage belongs to. Also
added rewind function; need to redo as a TOC-building function.