Minor white space cleanup
Split plugin up into multiple files.
New plugin code layout, Some refactoring and improvements to the trakt submissions.

Trakt submission improvements:
 - Keep "watching" status until the very end of the media
 - When playback ends scrobble un-scrobbled items with progress over 80%
Started cleaning up sync.py, chopped long lines. Work is still needed to bring down the massive indent depth (up to 14!) in places.
Refactored pms.py
Working on cleaning up syncing.
Finished splitting sync.py into multiple methods and refactoring duplicate code.
Syncing working again

 - Removed yield expressions (not allowed in plex)
 - Added all() function (not available in plex stdlib)
 - Fixed scrobble and rate methods not triggering the http request
Fixed bug with syncing.
Timeout errors are now caught to ensure the plugin doesn't die.
Merge branch 'clean'