fix name
return app for subsequent use by other scripts
use smarter env detection
don't ignore .gitignore files
add site controller and view
complete entities