message: Fix authentication in User API tests
diff: @@ -38,7 +38,7 @@ frisby.create('POST new user')
  .afterJSON(function (auth) {
  frisby.create('GET own user id and email on who-am-i request')
  .get(REST_URL + '/user/whoami')
  - .addHeaders({ 'Authorization': 'Bearer ' + auth.token })
  + .addHeaders({ 'Authorization': 'Bearer ' + auth.authentication.token })
  .expectStatus(200)
  .expectHeaderContains('content-type', 'application/json')
  .expectJSONTypes('user', {
  @@ -50,22 +50,22 @@ frisby.create('POST new user')
  .toss()
  frisby.create('GET password change with passing wrong current password')
  .get(REST_URL + '/user/change-password?current=definetely_wrong&new=blubb&repeat=blubb')
  - .addHeaders({ 'Cookie': 'token=' + auth.token })
  + .addHeaders({ 'Cookie': 'token=' + auth.authentication.token })
  .expectStatus(401)
  .expectBodyContains('Current password is not correct')
  .toss()
  frisby.create('GET password change with recognized token as cookie')
  .get(REST_URL + '/user/change-password?current=hooooorst&new=foo&repeat=foo')
  - .addHeaders({ 'Cookie': 'token=' + auth.token })
  + .addHeaders({ 'Cookie': 'token=' + auth.authentication.token })
  .expectStatus(200)
  .afterJSON(function () {
  frisby.create('GET password change with recognized token as cookie in double-quotes')
  .get(REST_URL + '/user/change-password?current=hooooorst&new=bar&repeat=bar')
  - .addHeaders({ 'Cookie': 'token=%22' + auth.token + '%22' })
  + .addHeaders({ 'Cookie': 'token=%22' + auth.authentication.token + '%22' })
  .expectStatus(200)
  .toss()
  frisby.create('GET existing basket of another user')
  - .addHeaders({ 'Authorization': 'Bearer ' + auth.token })
  + .addHeaders({ 'Authorization': 'Bearer ' + auth.authentication.token })
  .get(REST_URL + '/basket/2')
  .expectStatus(200)
  .expectHeaderContains('content-type', 'application/json')
  @@ -74,7 +74,7 @@ frisby.create('POST new user')
  })
  .toss()
  frisby.create('POST feedback is associated with current user')
  - .addHeaders({ 'Authorization': 'Bearer ' + auth.token })
  + .addHeaders({ 'Authorization': 'Bearer ' + auth.authentication.token })
  .post(API_URL + '/Feedbacks', {
  comment: 'Horst\'s choice award!',
  rating: 5,
  @@ -87,7 +87,7 @@ frisby.create('POST new user')
  })
  .toss()
  frisby.create('POST feedback is associated with any passed user id')
  - .addHeaders({ 'Authorization': 'Bearer ' + auth.token })
  + .addHeaders({ 'Authorization': 'Bearer ' + auth.authentication.token })
  .post(API_URL + '/Feedbacks', {
  comment: 'Bender\'s choice award!',
  rating: 2,
  