core-4760 add loading gif.
core-4760 refactor code.
Merge branch 'master' of github.com:iPlantCollaborativeOpenSource/de-webapp