updated metadata schema and fixes for ckan 2.0