Add basic logic to handle different graph types
Update script with new API changes
Move imagedir and datafile to global configs
Implement table display in the email