Add functions for purge and creating the cache.
Cleanup code.
Merge branch 'dev' into tng

Conflicts:
	system/modules/syncCto/config/autoload.php