Proper locking for purge and push notification scripts.

Signed-off-by: Nikhil Sama <nikhilsama@gmail.com>
Typo

Signed-off-by: Nikhil Sama <nikhilsama@gmail.com>
Merge branch 'new_design' of github.com:NikhilSama/SnapLion2 into new_design