Fix bug with hostname hash not being changed for URL iterations
More work creating json endpoint