Refactor sendsig and sigreturn. Use a signal frame to psass signal information to userspace.