allow new api format for posting sched maint - fixes #239
handle exceptions in the api - log stack trace and error, related to #180
clean up logging calls somewhat
Merge pull request #241 from jessereynolds/239_sched_maint_500

log exceptions in api, handle new scheduled maintenance api format