Finished laying out BSONEncoder; needs testing. Some methods stubbed out
only, like conversion of Java Regex flags.