daemonize code added and writing of pid file

ail not do anything on windows

use: PlexConnect.py [--daemon] [--pidfile ./pidfile]