Refactors to base objects (util functions) & Build Adapter!

AWWWWW YISSSSS

`adapter::publish()` has been renamed to `adapter::publishPayload()` though, so there's that...
**Also, JSCS & JSHINT updated for new app structure**
Technically, afaik, we have either the basic auth or the token trigger. Not sure what else there is but at least I figured that this would be ok - it's in its own fx so it should be easy to revisit and improve after getting more info.