Add term db mode.  Minor changes to quantifiers rewriter: split ITE's where equality resolution is possible on condition, pull nested quantifiers from ITE branches.  Minor cleanup.
Resource-limiting work.

Signed-off-by: Morgan Deters <mdeters@cs.nyu.edu>