Fix for cache locking. Release loop prevention and some refactor.
DEV-000 Notice developer through a trigger_error about unintentional 'action' genurl function parameter override if he doesn't specify a valid value.
Merge pull request #60 from JavierCane/devel

trigger_error on genurl action parameter invalid value set
Merge branch 'cache_lock' into devel
Fix delete method on Cache/Base class (not applying sha1 to key)
Merge branch 'cache_delete_fix' into devel