Cookies: In a large bowl sift flour, cocoa powder, salt, and baking powder together. Beat the butter and sugar until light and fluffy, add eggs one at a time, beating continuously. Continue beating, add vanilla extract and flour mix, until you have a smooth dough. This can be done either using an electric beater, or a spatula. Wrap the dough in a plastic wrap and refrigerate for about one hour.