REST communication with medic; observers refactoring