Update PhpSerial.php

keep track of all mode parameters for windows, which seems to reset other parameters when not set as part of the mode command
added support for setting serial flags in osx/linux for binary communication(not breaking on special characters)