Renamed app_* functions to site_*