KPZ equation and directed polymers: exact results from the replica Bethe ansatz