Continue to refactor towards Sidekiq use

Due to the difference in running them inside one Ruby process and
together with Sidekiq I have more changes again. Also added more
logging statements and fixed some problems.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Fix further problems

There are so many things wrong here, I do not know where to start.
Anyway, now it works a lot better.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Fix further implementation problems

There was a nested loop which started more jobs than expected. Also I
have adjusted the recursive parser implementation once more. Now I will
write some unit tests.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Add RSpec and initialize its directory

I have added RSpec to the project dependencies and initialized it.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>
Implement unit tests for the recursive JSON parser

I have added several test cases to check whether the recursive parse
method for the JSON module is working as expected.

Signed-off-by: Konrad Reiche <konrad.reiche@gmail.com>