Solution much simpler than expected.
Extraneous file.
Tweaking routing.
Tweaking PHP features.
Got Oauth Working.
Made a object for handling calls to Nest.
Made an api to call PHP api from javascript. Ridiculous, but I needed it.
Created an overall simple client.
Adding a little style to main app page.