First commit. Functional code, in production on a single site, but not well tested with other sites or log styles