Create index.php

Initial commit. I think I fixed some bugs with the "random" session id generation.