State spaces of operator algebras : basic theory, orientations, and C*-products