Updated the .gitignore to ignore the lib dir
Cleaned up the App class to simplify the initialization threading