Cleanup debug messages in traktJsonRequest()

Cleanup debug messages in traktJsonRequest(), make them all indicate the
function they're from.
Add a few other debug messages to track flow.