San Francisco Frontiers - Stocks gain, oil wavers as investors weigh Mideast peace prospects