Facebook has established a dual-class stock structure, a move that helps lay the groundwork for an eventual initial public offering.