Solved a number of annoying little bugs. Also, migrated the target prediction to do everything in separate thread, with a mid-way promise / future for the predicted trajectory.