If I\'m making an \'ajaxified\' user interface with many ajax calls for creating, renaming, deleting various things on my page - what is the best way to handle all those \"code
Sure, what you are doing now is a much better aproach.
Just have one file that controlls all actions.
I usually use a switch statement on command to keep everything nice and clean.
switch($_GET[command)
{
case 'insert' : do insert stuff; break;
case 'delete' : do delete stuff; break;
}