Fix some http connection leakage.
Throttle file notifications.
Split notify code to its own package.