Cleanup and install work

References cleanup and updates, some minor corrections and some work to
make the project compatible with an installation in the Program Files
directory (causes database issues).