refactor code for resources module
Merge branch 'gxt3-sandbox' of https://github.com/iPlantCollaborativeOpenSource/ui-commons-module into gxt3-sandbox