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**
Does Jenkins only use basic auth? Should this be configurable?