yes, that is exactly what occurs. Mosques act as an official organizing structure. It isn't even necessarily the Imam that is the power or most noted leader at the mosque. As in Christian churches, there are always "members" who have the "voice of authority" or who are considered leaders.

Also, in a catastrophic situation in a small community, there may be no municipal buildings. People might naturally gravitate towards a church or mosque as a "meeting place". Historically, in the US, churches did serve as both a religious establishment and as a meeting place for local government functions.

In a similar situation in COIN, it would not be inappropriate to include the imam or any "elders" in a local meeting. The Imam probably knows a lot about the community. Who are the leaders? who operates local businesses? Who needs immediate medical or financial assistance?

Is there anything that the Mosque needs?

these are not ideological discussions. We listen and act appropriately in our function as outsiders and secular governing force without interfering in their activities. This, by the way, does not mean that we have to intrude on the mosque with "soldiers carrying guns, wearing their muddy boots". We invite to an outside meeting with appropriate respect (even if you suspect he's harboring miscreants).

Of course, the Imam may want to maintain the independence of the mosque and may not accept any outside assistance. That should not be looked upon as a negative. But, we should also be aware that, in doing somethings outside of the mosque, such as financial assistance and education, or even recognizing its role in judicial matters, etc, we may be causing friction with the organization by interfering with their traditional role.