* Changed API to support cache tables, which makes it easier to have several c2g caches in an app.
* Rewritten tests to support cache tables.