Started work on TFM_FrontDoor
More work on TFM_FrontDoor
More bugtesting and tweaks with FrontDoor
Finished TFM_FrontDoor, made some variables thread-safe.
Merge branch 'master' into frontdoor