Added server functionality

I have no idea what I am doing, but its going to get better.