added 401 endless request loop test

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
reworked 401 test to use HttpServlet

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>
two requests to the same url, second fails with 401

Signed-off-by: Igor Fedorenko <igor@ifedorenko.com>