Restricted visibility of some internal functions and variables

Added basic tests for search_metadata
Fixed a bug where the iRODS metadata operation 'rm' was incorrectly
named 'rem' in the baton header
Merge pull request #12 from keithj/devel

Added more tests and fixed one bug revealed in metadata removal