Simplify cross platform functions
This set of changes moves most platform support into two simple files, sys/redox.rs
and sys/unix.rs
.
It also adjusts signal handling to use signal
for compatibility with both Redox and Linux.
For the reviewer, probably @mmstick, I would like to know if signal behavior on Linux is the same as before this modification.