At what poiont (population wise) do you feel it's right to start buliding more factories and research centers?
There are many ways to go and a lot of this depends on the size of galaxy that you're playing as well as how well your economy is doing.
Growth in all resource utilization games (this certainly includes the Civ series) is exponentional. The more resources you have, the faster you grow. Once your planets start to become productive you use more and more of your economy to build up your newer planets. However a rule of thumb I use is about 2B. Once you're at this level the planet can usually start producing on it's own without going into the red.
Not sure what you mean by 5-7 in each category. As to what classifies as a good production it all depends on what you're trying to do. The beauty of this game is that there are so many different strategies and variations. I assume you've seen discussions about "all factory", "all lab" or "all economy" strategies. If not search around there's a lot of discussion about these.
Everything comes into play. Being evil and getting the Artifical Slave Center gives a hard coded 50% bonus to all military production. The ASC actually unique in that it multiplies all other production bonuses as opposed to "stacking" i.e. is additive. This is a big part of any factory focused strategy.
If you have a strong enough economy you don't need any production at all and simply buy all your ships. It's just so hard to give a definite answer, it really all depends on what you're trying to do.
For example one way to gain advantage over the AI is to outcolonize them. More planets means more people, more income, more production and more research. However you can also intentionally allow the AI to outcolonize you but make sure that the planets that you do colonize are top quality and invest more time and effort into making sure your planets are fully developed by the end of the colony rush. Then you can simply over-run the AI with their far more numerous but far less developed planets. I call this the the quality over quantity method. However both methods work well but just focus on different things. With fewer high quality planets you look to take over the AI while he's weak and before he can develop his planets. If instead you out colonize them then it's the other way around. You try to survive until you can develop all of your planets and then once developed you can begin to assert control.
For every way someone says is the best way to do things, there's a knack that you need to develop in order to make it work. On the other hand for almost every way someone says is not the way to go there is a way to make it work. The devil is in the details. It's easy to give some high level overview of some method of play but when you try to make it work you find it's far more difficult than it was described. The best thing is to play and try new things and then ask questions and try again. You'll find that some advice will help and some won't. But even when the advice doesn't help at first it's often good to go back later and try something that didn't work for you. You can find that something that didn't work for you before now suddenly will work and it's not because the advice was bad and is now suddenly good but it's because your experience and ability have grown and changed and suddenly now you "get it".