AngularJS-ification of the Web front-end.

This seems to bring parity of functionality, with less boilerplate.

I also took the liberty to change the `/query` endpoint slightly, to avoid duplicating some logic in there.

/cc @sosedoff .. btw, thanks for starting this :)
I implemented the same change here, but I think there's still a risk of injection, especially since AngularJS takes the table name from the URL you're viewing (that is `$stateParams.table`).