Add import and export of key-value store

For export, use:
python serve.py export > data.json

For import, delete any old database files, then run:
python serve.py import < data.json
Merge branch 'master' into 373-changes