It looks like the uppermost ship gets the captain position when grouping. There should be a way to designate the main ship other than moving him to the top of the screen...
There is already a way to do this.
When you select more than one ship, note that one of them will be the "primary selection", and have a slightly brighter selection square around its icon.
If you hit TAB, the primary selection will cycle through all of the ships you have selected.
If you form a fleet from your selection, the primary selected ship will be the flagship.
The way I usually do it is just to select the ship I want to be flagship, hold down shift, add all the other ships I want in the fleet, and hit the form fleet button.
If you somehow get it wrong, you can fix it simply by selecting the fleet, hitting TAB to cycle to the ship you want to be flagship, and hitting the form fleet button again.
Easy.
As for the sidebar scrolling, it drives me INSANE. I really hope they fix that soon.