Add json config + parsing

Close #1