Registration form now uses the servlet. CORS headers added to servlet.