Add GPIO configuration api and use it to configure UART pins

Additionaly LED pins are also configured.