Added an origins option

With the option you can determine which origins are allowed to connect.

Also I got rid of the dot syntax for module requires.