Moved all package loading code into package_list class.