I'll help out on the brake lines. We have swapped a couple of these lately, no XJs, but 1 TJ, and 1 YJ. They use the same brake setup as an XJ.
Standard Brakes:
We have found the easiest thing to do is get 2 Drivers side hoses (for the explorer, not the jeep).
Get 2 lengths of hard line with the same thread, one about 12", the other will need to be a 48" line cut to fit and re flanged. You can get tools to do this at most parts stores.
Use the factory hose (with the T fitting).
Basically, looking from the rear, the order would be:
Caliper - Drivers hose -12" hard line - T fitting- custom hard line bent over diff- Drivers hose - caliper
For the E brake:
All you really need is 2 small cable clamps!
You can actually use your existing lines. The PITA is you have to cut about 4-5" of the outer sleeve off without cutting the cable itself.
The sleeve is winded steel, so I found you can basically unwind it.
Next, adjust the e-brake cable so it is as loose as possable. This is important or there will be too much slack when done.
Once you get the sleeve cut, insert the cable in it's location. Then wrap the cable around the lever and secure with the clamps.
Next tighten the cable, removing any slack, till the levers start to move. Then test the brake and re adjust as needed.
I don't have any pics of the ebrake, but here you can see the main lines on the TJ.
Good luck!, XJs are an easy swap.