Chlorinated hydrocarbons to cobalt and cobalt compounds