returning a promise

which contains the config details of the created app/component
Merge pull request #47 from cesine/returnPromise

Return a promise