upgrade all packages

a recent version of the angular beta moved .then to the Promise prototype meaning that we had to do a little more work to ensure that the promise wrappers that we use continue to work. Also for some reason ng-if wasn't working as expected so I switched to ng-show.