made http api an option

The default td-data.conf opens up port 8888 for an http api. This patch makes the api optional.