Allow editing similarities through API

This allows a PUT request to /similarities/:id