Add debug logging.
Add autoconfig information for some contrib apps. Fixes #5