Douglas Carter Beane's new play, at Lincoln Center, draws on his memories of working at a community playhouse as a teenager.