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.
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 #46 from nate1280/notification_rewrite

Notification rewrite