This one is for @cmaumet
cleanup, better debug messages
Fixed polymorphism related bug in the REST api