Initial work on several software support functions

Memory, UART0, SPI and the EVE controller. Very patchy and nothing
really usable yet...