Implemented registration; minor modifications to login and request handling.