Added JSON response, registered user class/interface, updated tests