[HostAPP] Tidying up part one. Video thread and detect thread are coded not integrated/tested.