All of our CFAG12864F series modules have on-board negative voltage and temperature compensation for the contrast. The suggested contrast control is a 10K pot. across Vdd (+5v source) and Vee (negative V out) with the wiper going to Vo (contrast).
For the backlight, you have a couple of options.
There are A (anode) and K (cathode) connectors on the module that will allow you to power the backlight separately. Or, if you choose, you can power the backlight from Pins 1 and 2. To do this, you will need to close Jumper J1 to connect the cathode to Vss / Pin 1 / Ground, and load a current limiting resistor in RA to connect the anode to Vdd / Pin 2 / +5v.
To calculate the value of RA:
(Vdd - Forward voltage) / Iled (use typical values.
So, for example, the CFAG12864F-YYH-TZ would work out to:
5 - 4.2 / .330 = 2.42 Ohms.
If you want to, you can use a pot directly in line with the anode to adjust the backlight. You will want to be careful and ensure that you do not exceed the backlight's maximum current.