Initial commit of real EJSON code.

Mostly, this is copied over from https://github.com/meteor/meteor,
but for now it needs a little bit of independant changes, especially
in making the test suite independent of meteor.

All the code for ejson is condensed down to the one file.