separate gradient color creation to its own module.

revert accidentally removed var.

index page gradient uses same colors as weather page.
Merge pull request #25 from alekhinen/enhancement/refactor

separate gradient color creation to its own module.