Merge pull request #9 from maxmind/greg/coverity-fixes

Fix issues found by Coverity
Make metadata public.

Added getters and cleaned up some of the types to make it more usable.