Refactoring of media-api adding interfaces for exposing the API

Change-Id: Ie05749a752b007f27a18922f7898207ea562f0ed