Revert "Explicitly use sync versions of cookie functions"
linting fix: Restructure bad empty if statement
Merge pull request #1118 from FredKSchott/linting-fix-empty-if-statement

linting fix: Restructure bad empty if statement
Merge branch 'master' into revert-1031-cookie_sync

Conflicts:
	request.js
Merge pull request #1121 from nylen/revert-1031-cookie_sync

Revert "Explicitly use sync versions of cookie functions"
add basic linting to request library
Merge pull request #1119 from FredKSchott/linting-add

add basic linting to request library
refactor the Request constructor

add some helper functions, and organize other helper functions
move most of the request js helpers into the helpers file
Add back some missing code, remove duplicate lines.
add comments to request constructor and helper functions
use self in constructor for consistency
remove tiny white space
add braces to my conditionals :)