Adding disable logic for buttons.

Updated tests and introduced common toggle disable approach for registration and login. 
This is for ECOM-641
@AlasdairSwan @wedaly
I wanted this line to disable the button the moment we begin submitting a request, that way, while the server may be processing the request, no user can click the submit button a second time.