Added spl autoloader for toggle objects.

Adding in SPL autoloader.