Http api

First pass wire up of (most) HTTP endpoints but without authentication.