TW-34590 Shared Resources should not be global

Resources now truly belong to project. Two resources with the same name from different projects are now different resources
TW-34590 Overriding on resources + tests
TW-34590 Test on deletion now deletes actual existing resource
Proper Spring context dtd path
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
Code reformat
Added usage of locks storage, fixed tests
Got rid of duplicate Resources.asMap() calls
Tests refactoring
Merge hierarchical shared resources implementation to master
Idea project structure update