Based on a gay novel shortlisted for the Booker Prize, the play briskly describes the love and separation of free-spirited young people.