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