CC-5450 : Refactor Media Management

redone webstreams, will come back to do finishing touches for error handling after a bit more generic work on media.