Fixing up a few things with shared pointers to avoid crashing on exit
Cleaned up saving the config file when the window is closed by a variety of methods
Reworked project file to build under the build directory to keep from cluttering the source tree. Added external libraries to support scripting.