Replaced localhost references with 127.0.0.1 as per elans tip

from the plex forum. Should fix problems on systems where
localhost doesn't resolve properly.