Fixed a lot of stuffs

Implemented the missing interfaces, moved to .Net 4.0 (apparently, less
bugs/awkward behaviours over SerialPort) fixed a lot of stuffs here and
there, reworked the stub test etc.