Fully test target contstruction.

Should properly handle all combinations of target names and URIs, command-line
options, engine specs, and configuration. The --db-* options are also
deprecated, and the `uri` new methods delegate to the URI attribute, to make
the Target interface the main one one would use.