post-coffee clenaup
moved email module from core to extensions
added Function.prototype.bind shim for PhantomJS. Can be removed in PhantomJS 2.0