Made serverside Internetfunctions into separate file

And cleaned