Use classList for CSS class ops where available

Instead of parsing the class attribute string, check whether classList
is defined for documentElement and use the native functions for class
existence test, addition and removal.

This yields significant speed improvements as can be seen here:

http://jsperf.com/oz-js-class-ops-test