feat(hapi): upgrade to latest
Switch from cookies to bearer tokens
This PR takes auth token from the couchdb cookie and exposes it as a bearer
token at the HAPI level:
* When couchdb sets a cookie, it is stripped, and the authToken is added to
    the JSON body.
* When a request comes in, the 'Bearer ...' token is read from the Authorization
    header, and converted to a cookie for couchdb.

This happens at the hapi level.
The solution is based on https://github.com/spumko/hapi/issues/1637
and https://github.com/spumko/hapi/blob/master/docs/Reference.md

TODO:
* [ ] create a couchdb mock in the test framework
* [ ] use this to create a test for the `mapProxyPath` function
* [ ] use this to create a test for the `addCorsAndBearerToken` method
* [ ] add tests for the `extractToken` function

add basic tests for api plugin

tests for mapProxyPath

add test for extractToken

first draft of addCorsAndBearerToken tests

use done function in tests

use port number that is different from the one used in other integration tests

fix https://github.com/hoodiehq/hoodie-server/pull/288#discussion_r17104243

fix https://github.com/hoodiehq/hoodie-server/pull/288#discussion_r17083744

jshint and typo

fix merge errors from rebase

try to fix https://travis-ci.org/hoodiehq/hoodie.js/builds/34471428

fix typo in test