refactored cache
added function to test presence in the cache (or an environment)
(Still needs tests)
merge typo fix.

Merge branch 'master' of github.com:jackwasey/jwutil

Conflicts:
	R/cache.r