Support query sorts and commands

This builds upon changes submitted in #5 and #6.

When aggregating queries and commands, the sort order and some command options are now included. These should ultimately been exposed in the UI. Likewise, since the update/remove options for findAndModify are being emitted, it will make sense to also emit the newObj parameter for update operations down the line.