Add two api for export and reimport enum def defined by user

closes #4047

Add exportEnumValues that take the values from the database and save into a json file
Add importEnumValues that take a json file from exportEnumValues and reimport it