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**
Oh. Whoops haha good catch