Dont shutdown on config download fail
Move CXX bits into a lib that will be added to dtsapplib
Code reformat