rewrite for new json
add drawlog.py
fix cgi script