Debug code to test basic CoOS timing as well as SPI functionality in CoOS.

Cleaned up main.c a little

NOTE: the functions in delay.c/.h no longer work as CoOS utilises SysTick.