Simple captca for signup page

Adopted pull request by @qmaruf (#4626) - this is to replace that to finish captcha functionality. I kept the original commits but squashed them into one. Also fixed a few minor things like indentation in config example, reverted .rvmrc change and locked the captcha gem version in dependencies.

Will add tests asap to finish this.