restructure to make it work with antigen

because antigen just loads every file in the base folder to initialise plugins, I moved the internal libs to its own folder.