Angelo Ogbonna was the unlikely hero as West Ham claimed a last-gasp 2-1 victory in extra time against Liverpool in their FA Cup fourth-round replay at Upton Park.