Geometric phases and quantum entanglement as building blocks for non-Abelian quasiparticle statistics