Add the extract command to itsdb.py.

The extract command takes a table and a list of fields and outputs
the contents of those on stdout.

This commit also fixes a few small bugs, like for crashing on
constant arguments in SimpleMrs and a missing import in mrs/pred.py.