Update & whitelist domains & option for absolute path

I use express 3 at work and wanted this function, but we re-direct to multiple domains. Also, I wanted an option to ensure the path was absolute. I really liked the module and thought I'd send a pull request.
use `Array.isArray` will be better