MAINT: refactor of cdm.py (thredds.py)

Renamed thredds.py to cdm.py.
Refactored and renamed function in cdm.py.
Added function in cdm.py to documentation.