use self everywhere in request.js
use self in the cookies.js
change some variable names for clarity
Merge pull request #1155 from seanstrom/support/use-self-everywhere

Support/use self everywhere