#488 quick fix for building urls in login redirect. should be refactored
Merge branch 'apiv2'
Added support for recaptcah form in https