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
Merge pull request #1 from bkutil/class-list-ops

Use classList for CSS class ops where available