Make idx of definitions work.
Refactor as_json and add quote model.
Implement kcwu json import script, close #1