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
As all these api functions return void, i added a compile time error if the prerequisites are not present.