Various fixes

- Added -log argument to specify a log file at the command line.
- urllib2 exception handling.
- Added check to make sure Couch Potato API is available.
- Fixed Couch Potato API changes specific to the category.list method.