Initial commit for LoginRegistration widget.

I think that I've got everything working, but can't fully test against the permissions proxy endpoints yet since I haven't got them working correctly yet.
Updated xhr parameters.

Added `application/json` header.
Converted data to JSON string.
Merge pull request #4 from stdavis/login-widget

LoginRegistration widget.