wrote history json endpoint. gets last 30 incoming messages in last 2 days.