added code from test version, has most static files, registration flow