Added termios and test script

Added basic termios functions. This pulls a lot of constants into the posix namespace, I hope this is not a problem.

As far as I know the functions added are all POSIX compliant, but I have to admit I only tested on Linux.