Add --api-metadata command line option

- New command line option prints the binary API metadata object
  and exits
Rename --api-metadata to --api-msgpack-metadata
Merge pull request #779 'Add --api-msgpack-metadata command line option'