Amd loader

Supports browsers and Node.