new schedule creation in web interface

Added ability to create new schedules from the web interface.
The $_POST processing code had to be refactored quite a bit
to get it to work in each of the cases (new, update).