Feature/33 ie fixes

A whole boatload of IE fixes and improvements, and I think it's functional down to IE6.

Fixes #33.
Fixes #29.