Clashes in Tripoli as Gaddafi regime, rebels in contact