Fix for #6

@mlucy -- could you take a quick look?

The url `/` doesn't require a connection, so we could eventually refactor a little more, but I leave that for later.