Added /env and /creds endpoints for debugging.