Ticket #165 - Prevent scrolling when clicking hash links in IE.

Also moved out the target=_self code from preview() into this method to clean
up preview() and also prevents it from having to modify every single <a> on
preview. Events are now delegated and are only setup once.
Ticket #165 - Added passing tests.
Fix stack trace errors in IE due to Mocha issue:
https://github.com/visionmedia/mocha/issues/502