IStreamResource and dict-inheriting BaseResource

Move toward unifying the stream with the rest of the app, and make
changes toward simplifying all Resources, by making the BaseResource
a subclass of dict and adding an IStreamResource interface.

With this change, it becomes possible to store arbitrary data in
every resource, which will help to clean up the currently ugly division
of template environment and model keys in the AnnotationController
view.
Support query in baseURI replacement for streamer

Once again, avoid putting things unnecessarily in the scope.
For this to work, we also need to use the html5 location syntax.
This configure function will go away once streamsearch is merged
into the main app.