Make proxy settable with ENV var
Fix to make /register/invite_code work - with test