Redo and consolidate formatting of objects to be more consistent and allow pretty printing.

Took formatting logic from the actual mongo shell. Also got rid of the duplicate print options (toString and stringifyQueryResults) and condensed to both use toString.