A new book out details the sometimes-sordid history of how the social networking company got its start.