Integrate trimLabels() into code.

trimLabelsLeft() and trimLabelsRight() are no longer used. Some tests in LinearTimeScales will have to be ignored for now as there is no clear choice on how much to trim labels right now.