The Role of Graphs of Groups in 3-Dimensional Geometry