Use a function to get operation names

Declare print_json
Merge branch 'devel' of github.com:keithj/baton into devel
Completed initial metadata list functions

Refactor of NULL checking
Improved error messages
Merge pull request #7 from keithj/devel

Completed initial metadata list functions