PM-712 add a traceback if we are logging a critical error and doing an
exit.
PM-712 some logging for what record is parsed from the clustered job
.out file. changed the condition to stop parsing an invocation record,
to check on line instead of buffer.
PM-712 Changed the way how the buffer is created for each xml record.
PM-712 added log messages to aid debugging.
PM-712 fix for the memory explosion bug in monitord. it was triggered
because lazy flag was set to False for invocations and jobstate in
relation to the job_instance.  Because of this setup, on the event
stampede.job_inst.post.end where the status of a large PMC job was
updated, it lead to a join between job_instance,invocation and
jobstate . This led to the memory explosion as the stdout text for the
PMC job was about 120K and number of invocations 30K+ and jobstate can
be 4-5
PM-712 Added debug log messages to aid debugging.