very simple rest server with callbacks handler