Pios thread

* disabled some unused FreeRTOS API functions to save some flash
* adds thread abstraction without change in functionality
* harmonizes all thread stack sizes to bytes unit
* harmonizes all thread priorities to a common enum

[ ] update all copyright headers