Atmospheric Evolution on Inhabited and Lifeless Worlds