Save only rules lines
Fixed Event() copying
Implemented cherrypy-based API