Added basic state_file handling to allow others to detect uwsgi state