Pios thread

* disables some unused FreeRTOS API functions to save some flash
* adds thread abstraction without changing functionality
* harmonizes all thread stack sizes to bytes unit
* harmonizes all thread priorities to a common enum
* uses uint32_t and milliseconds for system time
This should check that we get back pdPASS. If not we should return a NULL handle.