Refactored to make the Plex API return a full playable URL, present this in the AJAX responses and push this to the backend when needed.