Ongoing work on the hosts unit tests.
Added assertions on the loopback content length.
Moved loopback and design.json into lib.