HTTP frontend: Split out interval-parsing. See #7.