Enhancements to BSONObjBuilder family of classes' stream API

Conflicts:
	src/mongo/bson/bsonobjbuilder.h
moved kMaxJsFileLength out of header

taken from d389aca upstream