[AS7-6371] Revert "Move clear tmp dir hack to bootstrap impl"

This reverts commit ad3e878098129cb2ac925a50abe809aced6b070b.
[AS7-6172] Consolidate embedded server API