More stable startup/shutdown

I could not get Sickbeard to start with the old version so I copied over the sabNZBd rc.d script and changed it so it works with Sickbeard. It now also retrieves the IP and Port from the config.