Rewrote the apiV1.js to be more in a functional components react style.

14 jobs for functional-components-api-v1 in 25 minutes and 30 seconds (queued for 2 seconds)