mv all client logic for register a new user to Register.js

Change-Id: If51bb35acbac61dd74f16b6aa0ca933c01496c02