Added prefix option to HTTP API
Fixed auth in HTTP API