Merging changes from other forks.

Removed a double require (@EfrainReyes).
Allow cross-domain requests, (@vjustov).