Good choice on the pistol. There's tons of information on this topic under the maintenance heading and on other discussion boards and I am guessing that the administrator will lock you out and bump you there. Liking a challenge, I'll try to sneak in some advice under the wire!
My philosophy is to keep it simple. Before you even shoot the gun, clean it as follows:
Field strip the pistol as described in the manual. Using Hoppe's #9 or BreakFree CLP, swab down all metal parts and coat the inside of the barrel. Leave the copper colored material where ever you find it on the slide and frame; it is intended for the break in period and will soon wear off.
Next, run patches through the barrel with Hoppe's or CLP to remove any debris that came to you from the factory. Wipe down all metal parts to remove an debris (grit and dust) from many possible months of storage.
Lubricate your pistol as recommended in the manual and never forget to place that important drop of oil where the trigger bar and connector meet. You'll find that junction where the little hooked piece stands up on the back right side of the open frame. To see the friction point, gently squeeze the trigger and you will see the movement. Reassemble your pistol and you are ready to go.
I recommend that you clean your pistol after each 240-300 rounds, a little sooner on the first session. Because the Glock barrels have polygonal rifling, they tend to accumulate debris faster then traditional rifling. When cleaning, use a good lead remover (any commercial brand will do) and a copper remover (I like Shooter's Choice). Don't be afraid to scrub the barrel with a good brash brush, making sure to propect the muzzle crown and chamber from abrasion from the cleaning rod.
A final note: Always make sure that there is no debris, including lubricant, in your barrel or chamber before shooting - very dangerous pressures could result. Also, never oil the inside of your mags. The oil can affect the primers and also be transported into the barrel.
Hope this helps. Good luck.