Update to improve compatibility with new programming cable

Fixed bug in win32 open com port, ports above COM9 were not handled correctly.

Improved handling of initialization, the code is now even more specific to the cortex.

Changed the read/write transfer status display to be more friendly to the eclipse IDE.  Eclipse does not handle "/r" so status was scrolling of the console.

Signed-off-by: James Pearman <jbpearman@mac.com>
Merge branch 'master' of https://github.com/jpearman/stm32flashCortex
Update for OSX 10.9 and new programming cable

Improved handling of the new VEX USB programming cable under OSX 10.9.  Delays were needed between port setup and the first data to be sent.

Improved handling of initialization if the cortex user program
is sending characters to the programming port, buffers are flushed prior to system status requests.

Improbed status, percent markers now work for small downloads.

Signed-off-by: James Pearman <jbpearman@mac.com>