AppDb now tracks the executable.
Updated Configure to find the executable.

1. Currently uses an ugly workaround for finding which executable.
In the future we can find this using the appinfo.vcf file.
2. Added some comments and whatnot.