Added /edit, /entity/:gid/edits and /edit/:id endpoints, and improved /revision endpoint.