Fix/initialization issue

Due to the restructuring done to publish services of Applications, the initialization of the Capability- and  ApplicationInstances was delayed to a later point. This lead to the injection of null references when resolving dependencies because of non-initialized object state.
This fix initializes the state of Capability- and ApplicationInstances during creation, so that the proxy needed for injection exists when needed.