extract signal trapping to SignalTrapper
change "extend self" style of SignalTrapper
Merge pull request #1024 from signaturelabs/signal_trap_extraction

Extract signal trapping to SignalTrapper