browserify: Added require and exports as needed to support Node.js.

Change-Id: I0d3db94bd683f9e25e10404297c87928c5ce1eaa
waf: Re-order ndn.js files with correct dependencies needed for Node.js style require.

Change-Id: I571ec3c7c4b0623c4fbdb597e889a3513af9b9f7