Moved implementation of taken locks to resource based (from name-based)
Migrated tests to new model
Now working: custom and infinite resources.
Left to do:
1) Move locks storage to resource-based model
2) Adjust TakenLocksImpl and ContextProcessor to resource-based model
3) Write tests with resources on different levels of tree structure