Well now you're comparing Rangefinders to DSLRs, and again things like phase detection AF take up a large chunk of the camera. Things like metering also take up their fair share of space. Rangefinders have different more space friendly alternatives of both. The Olympus OMD is in the same boat. Not only do a lot of space hungry things become noticeably absent because they aren't needed for the EVF design,
I still disagree... sorry. I'm not convincing me that those components cannot be miniaturized. There are examples of this appearing in the market. EOS-M has both phase and contrast AF in a package roughly the size of many Micro 4/3 cameras and smaller than the Leica Rangefinder. The battery of my 1dMarkII is roughly 1/2 the size of the version that use lithium ion. Displays OLED/LCDs have become slimmer.
As for the flash.. none of the upper tiered (and rather large) professional bodies from both Canon and Nikon have on-board flashes. Neither does my Leica M's nor does my Olympus OMD.
I have seen teardowns of various cameras. Most notable is the Leica M8/M9. Its actually more cramped than the DSLR teardowns that I have mentioned. Much more cramped but most of it is due to off the shelf components... components that Canon and Nikon with their budgets are more than capable of reducing to a single chip.
DSLRs certainly do look cramped but so did the circuit board of an Apple IIe.