refactor to move classes into correct packages and tidy up how KryptnosticClient interacts with http