Some code refactoring in TraktAPI, try to remove as much as possible that is not needed. Still need to do something about calling the log methods.

Also need to look at the data structures next.