Make json api act according to HTTP Basic auth spec
Dont force ole TMCNetBeans versions to use http_basic_auth
We cannot use request_http_basic_authentication cause we want to have
response in json format in the case when auth fails
Merge pull request #152 from jamox/http_basic_auth

Do http basic auth by the book