Committed CSS patch from FMS (paul@jCa8...) to add support for the nth class of CSS.

This runs for me. I cannot run the unit tests, though (junit problems): Please run them before merging!

Improvements to tests are still to come.