Add UART_BINARY fw compilation option and do small refactoring due to upcoming changes in code