Code cleanups, commenting, moved effective uid and gid into settings.py.