Move encoding into contrib file
changed include
changes in include and conrib
Add src/contrib/encode.cpp to make files. Update README.
Merge branch 'gh7-mongotests' of https://github.com/10gen-labs/mongo-hhvm-driver into bson-decoder-encoder

Conflicts:
	src/bson.cpp
add license information
Merge with gh7-mongotests
add encoding
change the encoding method to hhvm_static_method
Successfully built
test encoding
experimenting with using php array
Made MongoCursor.cpp use bson_decode for returing results
Merge branch 'bson-decoder-encoder' into gh7-mongotests

Conflicts:
	test/bson_encode_decode_Test.php
Added decoder implementation for all Mongo classes
test/bson_encode_decode_Test.php
Added more testing for encoding + decoding. Encoding tests still fail
added tests for encoder. all primitive data types should work. mongo data types can't encode keys.
Added  variable in MongoId, got encoding of MongoId working
got rid of a dollar sign in contrib/encode.cpp