Move main.go into cmd/main.

Extract User struct into user.go
Extract client logic into client.go