Principles of Magnetohydrodynamical Control of Internal and External Supersonic Flows