Code cleanup and refactoring

* Refactored parts of NCSfacetedSearch.php to iterate over the fields
  of each result document returned from a search and add extra info from
  the schema to each field as needed, rather than iterate over the schema
  and add data from the result document where applicable. Also refactored to
  eliminate some unneeded xpath queries and make code more concise.
* Refactored SchemaNCScow.php to make code more concise
* General code cleanup
Added config.ini.template
Code cleanup

And modified cow-facets-atom.phtml to handle records that are now stdClass objects
instead of arrays.
Added robots.txt file to disallow all agents.
Refactored facet results sorting.

To eliminate an undefined variable warning. Also split this out into its
own function for simplicity.
Code cleanup/refactoring.

In facet parsing. Eliminated some unneeded xpath queries.