PIThread refactoring: - much more clear platform implementations - single status instead of flags zoo - more stability, using join instead of leaving detached