Interactive API (iAPI) middleware for UI-oriented computing