fixed caching bug in SimpleContentContext ... was always caching for 12 hours regardless of tiem passed in ... enhancements to resource.js includes filter and some functions for iteration of a resource.