Fix requirements inclusion of setuptools; ensure logfile exists for emit_file() in realtime views.py