Properly use sinon to mock and stub where appropriate.
Bugfix on vacant sched, fleshed out tests for Scheduler Registry.
Merge branch 'master' of github.com:rstudio/shiny-server