Improved support for pluggable apps
Updated get_models to work with both app names and app packages