Implment signal support

This adds the needed kernel changes to support signals.