Integration tests for scheduler

@peterbourgon  @jmyounker
Please take port numbers from environment variables.