Make API tests self-contained and add them to CI

- Create a local, in-memory elasticsearch node in the tests
- Index some sample data in the local node
- Run tests against a local mock server using the local node
- Add test execution to the Travis CI config (`play test`)
Merge pull request #42 from fsteeg/tests

Make API tests self-contained and add them to CI