Switch to streammachine API for stream stats
Add stream machine config to app_config template