Cleanup and refactorization of the STM32w port

This patch is a cleanup and refactorization of the existing stm32w port in Contiki, to make the port look and behave more like how a Contiki port is supposed to look and behave.