fixed routing: GET /document/:id returns doc, PUT /document or PUT /document/:id adds a document and returns an id