Added record creation to RESTful API.