Refactor test of json examples.
Add servlets of batch examples.
Add concurrency-api dependency