There are special greases and lubes for everything.
Lithium is pretty much standard for mounting, but something tougher might be needed occasionally. Apparently there are greases that are more compatible with carbon fibre, my last grease-up was at the shop though.
As for lube: dedicated chain lube is good to have, but WD40 will do a good job too, as the part of the chain that needs the lube is usually enclosed anyway, and the creeping characteristics of WD40 help getting the oil where it needs to go. For mountain bikes it's probably a good idea anyway, as you need to clean that chain quite often, and with frequent applications WD40 should be fine.
People claiming WD40 is not a lube are getting caught up in the fact, that there are light oils present, which do evaporate, but they are used to deposit a heavier compound which will lubricate wherever it is left. Of course, this will be a rather fine sheen, and therefore you'll need to reapply. Still, application is comparably painless, no need to wipe.
Finally, the other day I saw someone use baby oil on the forks.