ENH: basic sketch of JSON command parsing and routing