Add reset script; refactor some filedb methods.
Fix emitting saved messages to server.
Put schemas in json file.
Reset messages as well as people.