Hi there,
For the front, use a large a syringe full of brake fluid to back fill the sytem this is the way it is commonly done now? Anyway I believe that the majority of people on here would advise you to do this and not from the master cylinder down!
As for the back brake I am unsure how to do it myself so will let someone else advise on that!
Cheers
Sean