Refactored the captcha servlet to use the captcha service.