Consistent naming of Augmenter function templates and segments - fixes #62
Merge pull request #63 from rhunwicks/issues/62

Consistent naming of Augmenter function templates and segments - fixes #62
Remove unused code for function segments.

 To be re-introduced later, as needed.

 * docs/cfgobjects.rst: Remove CfgFunctionSegment.
 * pyrseas/augment/function.py (CfgFunctionSegment): Removed class.
   (CfgFunctionSourceDict.__init__): Remove cfg_segments argument.
   (CfgFunction.adjust_name): Remove as unused.  (CfgFunction.apply):
   Remove processing of segments.
 * pyrseas/augmentdb.py (AugmentDatabase.__init__): Remove segments
   parameter in initialization of CfgFunctionSourceDict.
Use SESSION_USER in audit_full and audit_default. Fixes #66.

  Also use pg_catalog.inet_client_addr as default for IP address.
Fix test_audit.py as a result of previous change to config.yaml.
For multiple files, only truncate filenames of schema objects. Fixes #61.

 * docs/dbtoyaml.rst: Point out only schema objects will be truncated.
 * pyrseas/dbobject/__init__.py (DbObject.extern_filename): Add
   truncate argument with default False.
   (DbSchemaObject.extern_filename): New method, which invokes super
   method with truncate=True.
 * tests/dbobject/test_extern_file.py: New test to cover change.
For yamltodb, create schemas ahead of extensions. Fixes #68.

 * pyrseas/dbobject/database.py (Database.diff_map): Process schemas
   before everything.
 * tests/dbobject/test_extension.py
   (ExtensionToSqlTestCase.test_create_extension_schema): Don't create
   the schema, but expect it first in the to_sql output.