Update rest.py

Rewritten Rest module. Added support for Jobscheduler.
Merge pull request #1 from CSantner/patch-1

Update rest.py