Handle status == ok on codeRequest response.

It looks like the response for codeRequest can say it is ok and
don't need to send the code on a sms. If so, fire a onCodeRegister
event with the password included on the reponse.
Merge pull request #441 from pastoso/master

Handle status == ok on codeRequest response.