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
For all these below, perhaps we should have a return code? Obviously not being included is something we could catch and handle. Not important since never used.