First JS-less steps

Please review this carefully, tell me errors if there are any, and if you're ok with the direction I'm taking.

This only channel.php up to now, so search engines should be ok after this update. If you agree this is the right way to tackle the problem, I'll try to slowly add more stuff to try to make Red usable without JS (network page, comment boxes, notifications etc. etc.).