Fold setXBMCwatched and setXBMCunwatched into one function and clean up.

A quick clean up and some documenting.