Main page: detect platform and offer the right setup file

Works but needs some cleanup.

If anyone has any thoughts let me know. You can see the live example on mpc-hc.org.
Yeah, I wanted to do that change eventually, but I had to leave so I didn't manage to finish it. I should finish this patch tomorrow.