Add support for observing resources from within web UI

I have added initial support for starting observation of resources from within the web UI. So far you can only start to observe, but not cancel an existing observation. However, notifications sent from the client for the observed resources are reflected in the web UI, i.e. the values are dynamically updated :-)
There are a lot of unwanted formatting changes in this file. don't forget to review your diff ;).