Move Host module to lib directory.
Add test script.