Changed the login call to ajax. This fixes #12.

Also changed the login view to return some json containing the address
to where the user should be redirected. Updated the customization
process in the docs to take that into account.

Added an example of login customization in the demo.