Added statistics to the REST API and added a bolt to upload them once they are generated by the stream app.