BROKEN transport commit with 2 new URL handlers

This is a broken commit because I need to work from a different machine afterwards. It adds two new URLs and their handler functions to ui/urls.py and ui/views.py, adapted from Indivo. The handler have yet to be adapted. Also new is a new template for record selection, which will have parts of it spun out into a base template.
Catch exception when backend is down. Some cleanup.
Move login and password reset to new templates
use lowercase template variables. CSS updates.
Merge branch 'admin_ui' of https://github.com/chb/smart_ui_server into dev_rest. Use UPPERCASE template vars throughout.

Conflicts:
	settings.py.default
	ui/views.py
Merge branch 'admin_ui' of https://github.com/chb/smart_ui_server into dev_rest
Add error template
Display all records after logging in

- Loads all accessible records and lists them after login
- Search is not yet implemented
- Selecting a record is not yet implemented
- Make sure that return_url's get carried over logouts. This is needed so users are not accidentally logged into the SMART UI from their mobile login screen
Merge branch 'dev' of github.com:chb/smart_ui_server into dev_rest
Preparation for after-auth. Some layout changes.
Simple JS record search. Template fixes.
client_py/client.py 2 -> 4 spaces. Add method.

Added a "get_response" method so GET calls can be made using "api.get_response(method)" and the response status will also be returned. The generic "api.call()" only returns a text response which makes useful error reporting impossible.
Spring cleaning indivo_client_py

Removed the config files as we are not going to re-create the api (I guess). Removed the create_api.py script. And removed most of the generated api calls, leaving only those that could potentially be used. Maybe they should all go and we should just use a generic api call where we manually specify the URL?
- remove carenet stuff
- remove autoshare stuff
- remove document POST/PUT
- remove document relations
- remove app document handling stuff
- remove app handling stuff
- remove Indivo reporting stuff
- remove document deletion calls
- remove audit calls
- remove notification calls
- remove a lot of individual calls
- remove coding system lookup
finish launch_rest_app implementation
iutils.py 2 -> 4 spaces. Get rid of IUtilsError

IUtilsError, a subclass of "Exception" without any new capabilities, was replaced with standard exceptions.
Enable token authorization flow

When the request token has been approved, the app's "index" URL gets called, with parameters "record_id" and "api_base" appended.
Added back jquery, corrected base.html references
Remove jquery again, correct app launch URL

jQuery is included in the "header.html" template, make sure you DO NOT have branding settings in settings.py (or load jQuery in the branded headers).
pep8-ify most hi-python and two controllers
Update admin_ui to display app credentials

Depends on the latest dev_rest commit on smart_server for the call to get the credentials.