Moved index script into pages directory

After all, it's just a page. And it's for browsing through the database,
not necessarily the starting page.
Moved icon to image directory
Eliminate CRs from textarea submit

We want LF linebreaks in our database. Also made sure to have integers
when we want them and print the correct line breaks in TeX output.
Correct submit URL in problem form