Add json endpoint and super basic auth