Changed json serialization
Improved http client request headers and error handling
refactoring
Added retries to stateClient put operations