Application API improvement

Newly created application object will be returned after creation