refactored dependency related tasks into more OO manner and

use better integration of java and ruby.

this also avoids opening many streams (to files) instead it needs only one stream at a time.

this patch deals with dependency data cached from bundler API calls to ruby repositories.

specs.4.8 files also get merged where a similar patch needs to wrapped the parallel streams into a sequence order.

can set the label - should be REVIEW