Hostconfig constructor
Closes #113 (closed). Add an exported method to get a valid ready to use host config struct. Reuse the validation from the code that is used while unmarshalling host config from JSON.
Closes #113 (closed). Add an exported method to get a valid ready to use host config struct. Reuse the validation from the code that is used while unmarshalling host config from JSON.