Added charset handling and default variable definition for Mako templates. Cherry-pick from git://github.com/babs/bottle.git
Added charset handling and default variable definition for Mako templates.
Cherry-pick from git://github.com/babs/bottle.git

ifduyue/bottle,AWFU/bottle,Inndy/bottle,adragomir/bottle,enzzc/bottle,ListFranz/bottle,AWFU/bottle,SmithSamuelM/bottle,gaotongfei/bottle,prologic/bottle,ericfrederich/bottle,kevintaw/bottle,kevintaw/bottle,adampresley/bottle,taisa007/bottle-ja,SmithSamuelM/bottle,oz123/bottle,Inndy/bottle,CentricWebEstate/bottle,kevinmel2000/bottle,hkmshb/bottle,adragomir/bottle,hayate/bottle,CentricWebEstate/bottle,Kjuly/bottle,bottlepy/bottle,StdioA/bottle,hkmshb/bottle,kevinmel2000/bottle,Kjuly/bottle,SamuelMarks/bottle,fkazimierczak/bottle,mefyl/bottle,myzhan/bottle,catroot/bottle,wangjun/bottle,mrdon/bottle,StdioA/bottle,ListFranz/bottle,taisa007/bottle-ja,fkazimierczak/bottle,ericfrederich/bottle,mrdon/bottle,myzhan/bottle,samstav/bottle,defnull/bottle,adampresley/bottle,samstav/bottle,hayate/bottle,khirayama/bottle,bottlepy/bottle,ifduyue/bottle,adragomir/bottle,khirayama/bottle,catroot/bottle,oz123/bottle,wangjun/bottle,prologic/bottle,xsank/bottle,gaotongfei/bottle,mefyl/bottle,enzzc/bottle,defnull/bottle,SamuelMarks/bottle