removed bom bytes and whitespace in php files

The bom byte caused my php setup to display "Cannot modify header information" warnings.
introduced config class
possibility to render and save svgs