Three Essays on Agglomeration and Firm Dynamics