Restores components

Almost...
Promises in component/api dont resolve while those in api/auth do

:'(