Migration to 0.9 streams API.

Please check over particularly with respect to correctly closing the resources and shutting down the actor system.
keep using one style in the template? e.g. make `system` implicit here