Pretty easy to do, when you order the 510 lights also order the Ram install brackets from PIAA, which work good and make it possible to align them nicely within the OEM fog light holes.
Not sure about wiring into the stock system for trucks that came with fog lights, should be able to wire into the original harness. Those without they have a slick little on/off switch that's easy to mount on the dash somewhere.
For you folks without the OEM fog lights you can order the fog light inserts from Dodge (suggest Mopar4less.com) for about $20 per side. You do have to remove the bumper then the bumper mount pieces to get them in, but it's worth it.
They are definitely tougher/stronger and higher quality than OEM by far. I believe the lenses are replaceable too (but they cost a few bucks).
Attached pics of my '98 club cab with PIAA 510 fog lights