Reorganize into a model-based approach
implement remote docs and queries
actually test something; remove debug
ignore config