Implement /api/register , convert datastructure used to store http
headers to a map
Encapsulate captcha and captcha response in new class