added host property to config, extracted json model classes to files, call to server is now async, some additional refactorings.