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.