Be very careful when removing and installing the brake lines, stripping or cross threading one of the fittings will create a huge headache for you. I suggest tightening each fitting very slightly first, just to break the line free. When bleeding brakes, it's best to use some type of pressure bleeder and flush the entire system until the fluid is clean, this should take 2-3 pints of fluid.
When replacing the brake pads, make sure to use high quality pads, don't skimp here. Replace the hardware and clean all the areas where the pads contact the caliper really well.
I suggest you go to youtube and watch some of the videos of people replacing brake pads too.
Good Luck.