Unified Ajax and Action API and handling