Origin and Early Evolution of Solid Matter in the Solar System