Prime orthogeodesics, concave cores and families of identities on hyperbolic surfaces