Implement domain module.

On master, `require('domain')` throws an error. This patch

1. Implements node-libs whitelisting in gyp instead of in the Makefile. No files need to be copied, just added / replaced in libcolony.gyp See #502 
1. Implements Array.prototype.lastIndexOf
1. Implements uncaughtException (again?)
1. Implements process-level domain support for thrown errors
1. Adds tests for domain module
If `process.domain` is set, don't fire an `uncaughtException`.