Main server-side functionality working

Also shuffled folder structure
Started Ajax testing