Add support for show dbs & collections, refactor command handling, etc.

Query structure now parses into bson.D's. Index with a map if iterating
is really a problem.
Just print error message on exit, stop panicking.