cdorigin - Make global and overridable

- Move cdorigin into library from top
- Allow project to override cdorigin