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
Just to comment on it, this is used to replace +0 and +1 priority. Only overosync used +0.