Support for materialized views and foreign tables.

mateiralized views generate like regular views
foreign tables generate like tables
force order of functions by names

Order By generates the same output for the same set of functions.
Escape single quotes in default values.

The default values using a sequence have single quotes that need to
be escaped.
fix for test counts.

save the previous count and restore after recursive calls to script.
major change to output routine.

The output routine now defaults to a string. Once all the tests
are generated the total count is used to call 'plan()' instead
of using no_plan. The output to the file is a single print
statement.
Document use of $PGPASSWORD