Added web API.

Initial commit of the web API. More to come...