add status/2 and headers/2 helpers, implement json/2