Add cache.clear()
Add consts to global ns
Remove debug code
Tests refactoring
Add pear instance cache cleanup