Correct the list of fields to sync with the frontend.
account for an extra blank field generated by frontend
undo hasty removal of helper function
reorder headers
add access control for all_clients list
Migrate to PDO for push.
Also use PHP for auth utils.