The Geneva-Copenhagen survey of the Solar neighbourhood II. New uvby calibrations and rediscussion of stellar ages, the G dwarf problem, age-metallicity diagram, and heating mechanisms of the disk