Added some config flags, token access, and set post params as env vars