two small fixes

The change in sheduler.py lets me (or anyone) create a local setting in 1.py to make settings.server_type = "https://".

The change in controllers/ajax.py makes it work without using generic.json, which the web2py recipes recommend turning off for security reasons.