try to remove the socket file before connecting
Fix content length for non ASCII (e.g. UTF8)

The Content-Length header should indicate the length in number of bytes not in number of characters. 
String.length is replaced by Buffer.byteLength(String)
Explicitly serve /data as the api config dir
Fix user -> use typo
Refs #36 Enable running iodocs under https
Refs #36 removed accidental commit of config.json
Merge branch 'feature/better-socket-handling' of https://github.com/adqio/explorer into adqio-feature/better-socket-handling
Merge branch 'adqio-feature/better-socket-handling'
Refs #214 merged changes from master
Merge branch 'patch-1' of https://github.com/bachwehbi/iodocs into bachwehbi-patch-1
Merge branch 'bachwehbi-patch-1'
Merge branch 'master' into https
Merge pull request #196 from stackus/serve_data_dir

Serve apiConfigDir at /data
Refs #216 fix Node server basic auth
Merge pull request #218 from mashery/server_basic_auth_fix

Refs #216 fix Node server basic auth
Refs #217 api level basic auth
Merge pull request #219 from mashery/api_basic_auth_fix

Refs #217 api level basic auth
Merge branch 'master' into https
Merge pull request #214 from mashery/https

Https
Support sending basic auth key via headers instead of query.