Haven't done this myself, but from what I have done (accessory wise that requires computer interaction), you should be able to wire it up as stock. Either get the proper harness or wire it as the harness would. You can tap into the CANbus wiring, just piggy back onto it in parallel.
Then, to get all the tell-tales to work correctly, you'll probably have to get the Jeep Starscanned to add the appropriate 4WD feature code(s).
2007 Jeep Green Rubicon 4-door with various bits 'n pieces... broken in but not even finished!