Tom Otley traverses the Portuguese capital by tram, discovering colonial treasures and devouring custard tarts.