Create AjaxRequest.php

This file is very important, it does almost all the work.