Define ApplicationInstance lifecycle
Implement dependency management logic.

DependencyManagement is responsible for the management of all dependencies and dependency injection in the system.
Replace onDependenciesResolved by activate and deactivate in IApplication.
ApplicationInstanceLifeCycleState transitions notify DependencyManagement.
Add Collection of Endpoint's.
Add @AddsResource in method to trigger observation.
Inject resource in ClientProvider.
Use proper reference to IResource.
Rename Resource to RootResource and update references.
Define test cases for dependency management.

Each package contains applications composing a test case.
A README.txt file explains the test case.
Tests for Dependencymanagement.
Consistent implementation for getPendingClasses and getResolvedClasses in ApplicationInstance.

They now include execution service when required.
Resolve executionService only when it is not already resolved.
Add required execution service in DependencyManagement tests.

ExecutionService is required in any ApplicationInstance.
Fixes in dependency resolution implementation.

- It now automatically resolves applications that have no dependency (not even the IExecutionService).
Notice this may happen when the application itself is the IExecutionService.

- It marks a dependency as resolvedNow in the same loop-cycle it is resolved.
Fix in DependencyManagementTest.

Check state is RESOLVED or greater when checking if an app has been resolved.
Better javadoc in test.
DependencyManagement test for resolving with another implementation when the used one leaves the system.
Merge branch 'master' into feature/dep-resolution-merge

Conflicts:
	core/src/main/java/org/mqnaas/core/impl/ApplicationInstance.java
	core/src/main/java/org/mqnaas/core/impl/BindingManagement.java

Conflicts solved manually.
Integrate DependencyManagement in BindingManagement.

BindingManagement manages the resource-capability tree and a pool of existing applications.
But it delegates to DependencyManagement the management of dependencies.