If the hub is bust it is because it did not stand the strain of wheeling. Buy the WARN product, mine are quite old and are still going strong.
Before you start buying parts consider what you are going to use it for. WARN premium hubs are a no brainer for me but if you were going to turn this into a hard edged rock crawler you would be wanting something more expensive or waste your money buying twice.
Wiring is a curse but get the right wiring diagram for your year and model and study what is there. You may well find some odd wires "spliced in" for CB, radio etc. This is invariable done badly and increases the risk of fire so take out the non original wires. When you are happy with it you can tidy up the looms with tape and that plastic trunking you see around computer wires.
We can all tell horror stories about PO wiring issues. I found out last week after 3 years of wondering why the temperature gauge did not work that the PO had put a resistor in the middle of the wire under some heat shrink and just twisted the ends together. Took it out and it read fine.
My wife's Puthijeep has been completely rewired by an expert who installed a fuse box with glass fuses. When the headlights intermittently went on and off I almost tore my hair out trying to track it down as during daylight they turned on OK. Turned out a glass fuse was conducting intermittently, not blown just ..... intermittent.
Good luck with it, 1981 is the best year but only if you have a 258ci I6, paint it red and give it a proper bikini to wear to the beach.
Hey Glenn hook me up with links like that to my 1980 CJ-7 pretty please
Wish I could.
Personally I like paper and to that end I purchased as my first purchase a reproduction of the factory service manual1984- thru 1986 CJ-7 / Scrambler Service Manual from Bishko Automobile Literature, www.autobooksbishko.com Price was 68.50 and included shipping. The quality of the reprint is crisp and sharp with no fading.