Autoload construction

Moving autoload dependency into the constructor for the core