ticket:75 fix problem with cycle in resourse and fix js for map
ticket:75 Merge branch 't75_resource_bag' into staging