add register method
Merge pull request #8 from rarnu/master

api register user