[cmyth] Code and headers cleanup

- Remove deprecated functions
- Cleanup headers public and local
and insignificant changes.