Moved captcha form into its own module

This will allow us further reuse of the form and its functionality in
other parts of the codebase.