Moved initial app code from creationComplete to initialize event.
Organized some imports.