First round of metadata tests and some bug fixes

Simple util class to read JSON from an asset.