add http api server

implemented in node.js, only implements GET for /events/<sha>
and DELETE for /events, all other requests are errors.