Fixes #895 kernelloader

Moved require_once KernelLoader.php to autoload.php because doctrine from CLI had problems.
Fixes #895