Read the thread 2manybikes mentioned to learn the basics. Then, get the brightest, longest-lasting lights you can afford. Then, get a smaller light to use as a back up when your good light burns out five minutes into your ride.
A reflective vest greatly increases visability.