fix for Safari 5.1 compatibility

- polyfill for official MDN CustomEvent polyfill
- graceful degradation if CustomEvent polyfill fails completely
Merge pull request #2 from getu-lar/issues/missing-custom-event

fix for Safari 5.1 compatibility