ui-web: add update-plan.php script (TODO: authentication)

(cherry picked from original 'planedit' branch)
ui-cli: add plan editing functions