JSON exports tags

Closes #78. This changes the export format to

{
tags: {tag: count},
entries: [{…}, {…}, …]
}
Nicer error message when there is a syntactical error in your config file.