I agree about the relevancy of what militia has to do with the basic individual’s rights has to to with owning a gun. However, your interpretation of the forematter is different from my interpretation. Your definitions are interpretations as are mine. I choose to believe We The People, STATES, and then Federal Government (if no objections are present from the prior).
According to the Constitution, the militia is foremost a state function, because the officers of the militia must come from the states. The president can use the militia in times of emergency, but the officers of the militia are under state control, not federal control.
Article I Section 8:
To provide for organizing, arming, and disciplining, the Militia, and for governing such Part of them as may be employed in the Service of the United States, reserving to the States respectively, the Appointment of the Officers, and the Authority of training the Militia according to the discipline prescribed by Congress;
Congress regulates the provisioning, organization and discipline of the militia, but they don't control the officers. State control of the officers was a check against federal abuse of the militia.
-PJ