Moves a couple logic bits out to their own functions in utils.py
Adds a catch for SIGINT to break the manage.py sync() loop