more flexible for theming
Fix more info form when member logs in #300

* Check against needinfo field in the DB and show form
* Add password field to more info form
* Set needinfo field when creating user without name field
Adding indexes based on @jetherton's blog post to speed up sql queries

Adding indexes based on this blog post: http://ethertontech.com/2012/09/28/optimizing-ushahidi-for-quick-reads-on-large-datasets/
Most of these are obvious and apply generally. I've skipped
the full text index on form_response since that won't apply to all users.
Report total rating for an incident rather than one rating arbitrarily.
Delete form responses when deleting an incident.
Remove redundant code for reports deleted from admin.

All of this is done in Incident_Model::delete(), including calling the report_delete action.
Allow using http auth to login when a deployment is private mode

* This makes all request allow login via http auth
* Adds Auth::http_auth_login() and Auth::http_auth_prompt_login() to Auth library
Improving tag media API calls

* Fix error thrown when tagging media to an existing report via the API
* Add incident id existence check when tagging a media to an existing incident via the API
* Refactor tag media to make use of inherited method for showing messages
* Switch to using ORM for querying the location id
Only reset session for non-ajax API requests #791

* Avoids log out issues when grabbing things via ajax (ie. checkins)
* But prevents CSRF by resetting the session.
* Stil vulnerable with XSS but they could grab the CSRF token anyway.
Remove duplicated code for HTTP Auth login
Avoid popping login box for ajax requests w/o auth
MY_Controller - grab user after login checks
Merge branch 'http-auth-api-fixes' into develop

Closes #1000
set Google maps language based on current locale
Merge branch 'pull-request-1046' into develop. Closes #1046

Conflicts:
	application/helpers/map.php
Merge branch 'develop-2' of https://github.com/Zabatak/Ushahidi_Web into develop

Closes #945
Improve code to get total incident rating - use SQL SUM()

Also adding $db to controllers
Improve reports/ID/rating SQL to use proper where() array-key filter
Merge branch 'pull-request-1038' into develop

Closes #1038
Remove unused deletePhoto function. Use Media_Model::delete() instead.