Updating Arduino-1.5.7. Improving handling of serial monitor (miniterm.py). Improved Trace.

1. Updating build configuration and platform for 1.5.7.
2. Adding support for serial monitor shutdown from board (special character 0xff).
3. Adjusting miniterm.py to allow filtering of outgoing cr and capture shutdown character.