Add calls-application class
Move application specific code to a new class for finer controls.
This commit also fixes 2 leaks, and presents an existing window if available (instead of always creating a new window).
Move application specific code to a new class for finer controls.
This commit also fixes 2 leaks, and presents an existing window if available (instead of always creating a new window).