Initial iteration of REST API.