D.P.
It's his job to test boundaries. When he bangs his hands on the wall or door he's letting you know he's upset with you (and watching to see what your reaction will be). When my child bangs his hands hard enough that it hurts him, I simply say "Wow - you hurt your hand when you slapped the floor! Ouchy!". Cause and effect. At nap time, if he's poking you, say "Ouch! Poking eyes hurts mommy! No poking!" and if he pokes you again, put him down in his crib or a pack-n-play and say, "Ouch, poking hurts! You are in time out for poking (pinching, pulling hair - whatever)". He will fuss, but it's your job to firmly and gently teach him what's ok and what isn't.