multiprocess -> thread

works on synology now
integrated from https://github.com/iBaa/PlexConnect/blob/XML_templates/PlexConnect.py