added additional test for non existing templates.
ran gofmt -l -s -w .
Added some hashing functions to hash the config file
reworked template writer to use a generic file path
Added test for non-existant configuration file
send error message to syslog on master switch event