Add functional tests for k.cmd (ApplicationHost)

- Extract common utils for functional tests to an individual project
- Add DisposableDirPath for neater cleanup logic