Improving handling of multiple UARTs (MEGA).

1. Added extern declarations for the UART instance references (g_uart#).
2. Added support macro, UART_SETUP(), to application binding of uart instance.
3. Changed order of IOBuffer constructor parameters.