Added time support for the web api log command.

There was an assumption that since and until were ObjectIds, this PR updates the command to support time ranges as well.