Buy the best moving parts you can ie headset, bottom bracket and hubs.
Honestly, I'd feel free to skimp on the headset and bottom bracket unless you're planning to ride around the world or you spend
lots of time riding off-road in wet conditions. I've yet to see a cheap ($20-40) headset or bottom bracket wear out, so spending a lot of money on high-end parts (e.g. Chris King) seems like a waste.