Implement work with API NiceHash

A lot of changes while implementing API NiceHash