Fix css issue with extended components

An issue with how class names were being resolved caused several issues with CSS if the ListSpinner or Calendar* controls were exteded.  Here's a fix with unit tests.  Not sure why so many line endings are different.