Library - step one and half

- Renamed constants to ccx_common_constants
- Moved freep,mstotime and fdprintf to ccx_common_common
- Refactored to separate GUI XDS output from the XDS itself