San Francisco, 1846-1856: FROM HAMLET TO CITY