Anomalies, Entanglement And Boundary Geometry In Conformal Field Theory