Migrate to AngularUI-Bootstrap

for drop downs and modals, plus various fixes.