Cleanup: Move signal handling code to pkg/signal.Trap

into `pkg/signal` ;) I stopped mid-sentence and just did it (it was originally in a separate package called `pkg/sigtrap`.