Added defensive copy of strings passed to dirname and basename

Added json_decref calls to free memory
Refactored JSON representation of collections and data objects
Permit one-line if statements
Housekeeping
Added draft of program to modify metadata from JSON

Refactored JSON-only functions and utilities
Renamed log configuration file
Merge pull request #8 from keithj/devel

Added a program to do bulk operations from JSON