fixed checking lastHistory
check for response.history before trying to run through it
some cleanup
get threads by label to be more uniform
remove jobs when they complete
move all gmail-related functions into a separate controller
when checking for existing urls for this user, only return the last item in the db, not the whole list
send urls via socket to client as soon as they're parsed
if we already have urls for this user, send the existing ones while we grab new ones
don't callback(err) if url is duplicate in db
setup redis opts for heroku
fix redis opts
debug
fix redis opts
fix redis auth opt
try catch decoding JWT, 401 if invalid
try to set token in localstorage as soon as we get it
try redistogo instead