Moved WPMediaPersister functionality into Media. h/t @koke

@koke rightly pointed out WPMediaPersister functionality better
belongs in Media than in it's own class.