[cogenda-web] - Refactor cherrypy ajax request handling.