Support AppConfigs in INSTALLED_APPS (close #252).

Thanks Warnar Boekkooi for initial commit.