For the brake line fitting, use an open end wrench. If it'* rusted, use a vise grip to grab onto the fitting and slowly work it out. If it starts to turn the entire line, just go the other way with the vise grip to break up the rust and not twist the line. Then, to unbolt the wheel cylinder, you'll need a 6 point external torx socket. I know SnapOn carries them; that'* where I got mine from. I'm not sure if CSK or other auto parts stores carry them.
Installation is the reverse of the removal. You may have better luck getting the threads of the brake line fitting started in the new wheel cylinder before bolting it down.
Don't forget to bleed the brakes after removing hydraulic components!
Good luck, any questions, PM me or post here. I've done tons of these.
EDIT: Hell, call me if you want, I have free incoming minutes
EDIT #2: Don't forget the country code before the phone number... funny canadians and their silly phones