Adds cookie support

Some website requires a valid session. If no session is found, user is redirected to homepage.
This results in an exception
"java.net.ProtocolException: Server redirected too many  times (20) - Server redirected too many  times (20)"
Adding cookie support solves the issue