ADD: MediaObject in the javascript library ADD: playlist functions in the xhr controller