Modified cache definition seperating the configuration defined in a
resources tag with the cache storing it.  Now possible for pages to
reference the same configuration, with different sets of resources.

- fixes #11 and fixes #9