Adding disable logic for buttons.

Update tests, clean up approach.

Updating jasmine tests.
Merge pull request #5962 from edx/sanchez/disable-login-button-on-click

Adding disable logic for buttons.