Clean up code in cbook

In this PR, I removed deprecated methods from 0.98.x - I moved some code to the tests, and I properly deprecated some methods (with a deprecation warning, and the release of removal).

This is a first PR deprecating the module from the public interface.