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.