Graphing upload

Graphing functions are mostly working, some small tweaks needed. Moved
around some functions from the PrinterStats class to PrinterStatsSQL.
Moved PrintersConfig to its own module. added gitignore for the smarty
folder, for some reason it is showing up as a commit needed, when no
changes were made to the files...