Started work on resources.

Added the notion of resources: stuff like images which are bundled in the ebook but are not part of the prose.
Resources can be sourced from anywhere but for the moment they are loaded locally.