Use strict mode in request
Linting fix: Make return values consistent and more straitforward
linting fix: authPieces was getting redeclared
linting fix: replace lazy '==' with more strict '==='
linting fix: remove function call from if-else conditional statement
Merge pull request #1109 from FredKSchott/linting-fix-func-call-in-conditional

linting fix: remove function call from if-else conditional statement
Merge pull request #1110 from FredKSchott/linting-fix-eqeqeq

linting fix: replace lazy '==' with more strict '==='
Merge pull request #1105 from FredKSchott/use-strict-mode

Use strict mode in request
Merge pull request #1111 from FredKSchott/linting-fix-redeclared-vars

linting fix: authPieces was getting redeclared
Merge pull request #1112 from FredKSchott/linting-fix-consistent-return

linting fix: Make return values consistent and more straitforward
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.