Adds a debug-dump-facts command for dumping the facts.

Facts can be dumped from factsets or snapshots, and
can be filtered by attribute and/or entity.

See #405.

/cc @charleso @nhibberd @domdere @raronson 
This is a super-silly question, but any reason you put the arguably faster code path on the right of the `||`? /curious