Added resource utils, fixed minor issues in json mapper and pkgmgr