Ensure firstRequest is passed to api._setupUser so that pending requests are cleared if necessary
Simplify tests by moving req and res to beforeEach.
Merged Standard8/fix_reconnect_long_polling