Improved Python's AppDB support.

1. Tracks the appdb filename.
2. Can load data.
3. Better validation.
First steps of a real execute tool.