Birth and death processes in random environments with feedback