Ajax PHP pages

for the async updates for the chat page