First of all make sure you read the Programmers Reference Guide that explains a number of things that are important to understand when you write JS for Aware IM. Second of all you need to be proficient in JS.
(It would also benefit you to go through the Aware IM client-side code using a debugger. To do this you need to rename AwareIM/Tomcat/webapps/AwareIM/aware_kendo/aware.js to some other name and rename aware_full.js in the same directory to aware.js. Then clear the browser cache and refresh the browser. Set a breakpoint at the method AwareApp.renderToPanel and see what happens in Aware IM when a new widget is rendered onto the screen.)
Some specifics regarding your questions:
About tabs. "Dynamic" tabs (those opened by the user are created using a method AwareApp.renderToNewTab. In this method you will see the following:
this.m_dynamicTabs[id] = {
widgetInfo: widgetInfo,
openedOnce: false,
settings: newTabSettings,
ctx: (procAction && procAction.getContextForStartProcess ? procAction.getContextForStartProcess() : null)
};
where id is the AwareIM-generated unique id identifying the tab. The ID that the developer assigns to a tab is in newTabSettings.id. So if you want to find a tab with a particular developer id you do it like this:
for (var awareId in AwareApp.m_dynamicTabs)
{
var tab = AwareApp.m_dynamicTabs[awareId];
if (tab.settings && tab.settings.id == "my_id")
{
return tab;
}
}
tab.widgetInfo contains information about widgets and "parsers" generated for the tab. Its contents depends on the contents of the tab. If a tab displays a form of the object, for example, the widgetInfo will contain the return of the parse method of the AwareApp_FormParser object. This info will have the unique Aware IM-generated id that you can use in jQuery to get to the form markup. It will also have the "parser" object that contains many useful methods (some of them are described in the Programmers Reference). And it will also have a list of Kendo UI widgets generated for the form.
This just aims to nudge you into the right direction. It's impossible to describe how everything works, but if you spend some time with the Aware IM code and the debugger and understands how it works, only sky will be the limit.