Implemented cherrypy-based API

Subj + trace fixes