Initial commit of the ajax.php AJAX/PHP backend and patches for the clone button and JavaScript clone function.