Offices of Bishop, Presbyter, and Deacon

What ecclesiastical offices evolved in the early church, and what were their functions?