Began api.md documentation

Also changed the responses for /create and /entropy
so that all responses are JSON