Cleanup the repeated code to support progress thread creation and stopping by putting it in a common place in orcm/runtime/orcm_progress.[h|c]. Modify all the current uses to use the new functions.

Also, cleanup some CRLF ends to two files as it keeps getting flagged by git.