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 :)
This changed in 7f9344a572a354d8343f9e5922a6b6af91c7206c.