Blitz64, I doubt there will be a possibilty to play a ranked 5vs5 match with your friend and 3 randomly added strangers, either it will be completely arranged or completely random (I hope they include both).
So if you want to play a ranked 5vs5 with your friend I guess you'll have to ask around for a few teammates.
Thinking about it again... I think it would be totally cool if you could "host" a team and after your friends joined you can open it for public so everyone interested can join and once the team is full you start searching for a match.
That would certainly make finding mates for big teams easier. Let us keep that in mind and maybe we can pester the developers enough to get that implemented.
Custom games will most likely be set up like in most RTS: someone hosts a game and everyone can join. So you will certainly be able to play with your friend in such a game.