Fix sync failure if no movies/tvshows in library

Fix tvshow sync, was referencing 'tvshow' ky directly off of xbmc json
request, it behaves like the movie sync code now.
Check for empty results when getting movie/tvshows from xbmc json
request.
Check for empty result prior to actually performing a sync, and abort if
it is empty.
Merge pull request #43 from nate1280/library_empty_fix

Fix sync failure if no movies/tvshows in library
added excluded location strings
added excluded location settings
added excluded location checks
Use python event for notifcation.

Rewrite notification service to use python events instead of relying on
a telnet connection to the rpc server.
Debug logging is very verbose while testing.
Fix crash in srobbler ping.

Use xbmc.sleep instead of time.sleep.
Add check that we're playing as well as pinging, will prevent a crash if
video stops while it happens to be starting a ping.
Fix getplaylistlength

Use playerid of 1 when calling this function, since a playerid of 1
indicates the video player.
Use https only

Default to https only, since logins are passed now via basic
authentication.
Add playbackResumed method to srobbler class.

Add playbackResumed meethod to srobbler class.
Fix problem with startTime in scrobbling

startTime used in various calculations wasn't being updated when needed
causing incorrect watchedTime values at various places.
FIX: Handle queued videos (No OnStop between playlist items). Fixes #44
Remove sha module import

No longer uses sha module, since username is passed in basic http
authentication now.
Database update fix

Only cause dispatch on update of video database.
Merge pull request #45 from ezechiel1917/exclude_locations

Add Option to exclude scrobbling of videos from user defined locations
Merge pull request #47 from koying/fixqueuedvids

FIX: Handle queued videos (No OnStop between playlist items). Fixes #44
Merge pull request #46 from nate1280/notification_rewrite

Notification rewrite
Merge remote-tracking branch 'origin/master' into ratings_gui

Conflicts:
	resources/settings.xml
	service.py