Refactor retrieve of application instance

move to package from application script
remove "apc.enable_cli = on" requirement

apc.enabled = off
Merge branch 'feature/apc-cli-free' into develop