Added graph and interval support.

* Added Graph class for simple RRD graph generation.
* Moved interval support into base Plugin class.
* Moved type registration in base Plugin base class.