A BSON codec implemented in pure lua using luajit's native ctypes.