Added media_controller for api.
Added test feature for media api.