all fixed but LineageApiTest
jdk.tools and jersey-code dependencies removed to build with hadoop-1
Merge pull request #313 from rostafiychuk/hadoop1

can't compile with hadoop-1 profile
hardcoded timeout avoided in waitTillInstanceReachState and waitForBundleToReachState, some javadocs and refactoring changes
hardcoded timeout avoided in waitTillInstancesAreCreated
refactoring and documentation
refactoring, javadocs