Refactored, uses TOML for config, added InfluxDB backend