changing BasicRestApp into a JSON-configured pretty nice server