Various csrl fixes

This rather big pull request is the rest of the csrl fixes to the code base, I believe. We should probably push a tag just before we apply this to the master branch so people have a chance to adapt and report errors against the code.

I will try running the conn_mgr tests against the code base, but they are not that thorough, so there may be other errors hidden in there. I think I got most of the code in a sane state, but it *is* quite invasive.

OTOH, this moves us forward since it coalesces all of what @csrl changed in his branch into the Eonblast branch.