Make init function and move to apps_core.php
Re-add APP_URL