Added loading indicator
Upgraded to angular 1.3.8
Properly modularising angular app. Fixes dialog stacking.