Added multi-threading support for API

Before
------
Ran 759 tests in 1608.000s

FAILED (SKIP=99, errors=25, failures=10)
make: *** [test-foreman-api] Error 1

After
-----
Ran 742 tests in 287.268s

FAILED (SKIP=99, errors=12, failures=8)
make: *** [test-foreman-api] Error 1

Most additional errors are 500 Server Error