Move TimeAbs2Int to the place of use
Move Months2Seconds to the place of use
Move Day2Number to the place of use
Remove unused global variable
Remove unused CFINITSTARTTIME and associated code
Move CFLOCK to the place where it is used
Move CF_LOCKHORIZON to the place of use
Merge pull request #1179 from dottedmag/refactoring/streamline-env-detection

Refactoring/streamline env detection