Make it possible to disable HTTP API access

References #126.