made loader, started API.

All untested, must sleep.