Rewrite sync routines.

Complete rewrite of sync routines.
Added setting to simulate a sync, for testing.
Fix imdb_id and tmdb_id handling

Convert imdb_id to "" when its None, when loading from trakt.
Convert tmdb_id to 0 when its None, when loading from trakt.
Convert tmdb_id to integers when loading from xbmc.
Fix findMovie, don't use isdigit(), but check if >0 instead.
Fix empty xbmc show/movie list check

Fix empty xbmc show/movie list check
Merge pull request #87 from nate1280/sync_rewrite

Rewrite sync routines.