Updated autoloader, fixed unittests to run (they are still incomplete),
and added class properties instead of creating the magicly at runtime.