Update orthanc.cxx

Removed most of the functions to put them in separate files.