use xbmc.sleep instead of time.sleep

monitor settings updates with xbmc.Monitor
use xbmc.Monitor instead of waitForScan()
custom clean library timers