Single rdflib.js for node, amd/requirejs and bare browser environments

This patch to the build process means that the resulting rdflib.js can be used both in node.js, in a RequireJS environment (tested in Aloha Editor), and as a bare file.  This is based on the code in https://github.com/SlexAxton/Jed.