Revamp template code and documentation.

- Adds 3 new template functions, `browserid_button`, `browserid_js`, and
  `browserid_info`, to make embedding a login/logout button easier.
- Simplify setup documentation and make a few miscellaneous 
  documentation fixes.
- Update JavaScript with lots of fixes.

Fixes #102; Fixes #101.