Split authentication.js into signin.js and register.js.
Added sign in and register actions and state transitions.
Added e-mail validation to the forms.