A new mini-genre of “how-to” books about dissent and activism has emerged, drawing lessons from past protests.