Add resource abstraction library

This is meant for easier and more uniform handling of different types of
resources. May they be couchdb documents, .egg package data or ordinary
file system entries.