Restored the original `waitForRequests` method behaviour and clear arrays

I restored the original `waitForRequests` method behaviour and fixed
bug related with the request and responses body arrays initialisation
when the server is started/restarted
1.0.0