Add supports for a basepath/auth&basepath in modules

As I'm a big user of a reverse proxy, where everything has a different basepath, I added basepath support for HTPC-Manager and authentication & basepath support for Sickbeard and Couchpotato.