Refactored some common code to server, started addnewuseraddress