Borrowed a lot of code from iBaa/PlexConnect to make a more concise plex interface
updated plex handling for new library