Fixed Job Log Flush and Node Reinitialize issues

* Added a flush to the log buffer
* Added a call to a new SPROC to mark the jobs a node is supposed to be executing as "Cancelled" when a node starts up. This will clean up broken state issues where the node shuts down but doesn't update the database to say the jobs have been aborted.

# Deployment Notes
* I've deployed the new SPROC to dev, but it *MUST BE DEPLOYED* to the other environments before deploying the code. See me for details.