Changes made by Kelvin Kosbab (kelvin@kosbab.com). Implement global app ajax function for all requests.