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
Yes that's right and idle thread (+0) priority should really never be used because that means your thread will be time sliced with the idle thread.