Improve usage message and clean up
Make metadata JSON generation nicer and independent of CKAN