Better scrolling events, bug fixes

Significantly improved scrolling events, better width and height
getters, bug fixes
Make class manipulation work in IE9