start of varbase web interface/api, json models