configurable GridItem tick spacing and pen color

Hi,

this patch adds configuration options for GridItem grid and grid and text color, and options for custom grid line spacing.

It also makes GridItem honor the 'foreground' config option.