Changed localhost references to 127.0.0.1 per elans tip from the plex forum.
Should solve problems on systems where localhost does not resolve properly.