WICKET-5445 Make CaptchaImageResource easier to extend and reuse

Make CaptchaImageResource easier to extend and add demos with Kaptcha and Cage libraries