Merge branch 'v2.5b' into develop
Hide sensitive commenter details from comments API #650
Merge branch 'v2.5b' into develop
Add default value for password_length to auth module config #558

This is to prevent issues with blank value when real value is expected
by validation libraries.
Quick fix to installer exploits for hijacking admin user #664
Add authentication to the email API #665

* Also fixes undefined variable $ret_value error
Merge branch 'v2.5b' into develop
Admin Report API: Don't require POST request for read only tasks. #344
Admin report API: Add option for ?task=reports&by=all. Closes #345
Remove @param doc for limit on Incident_Api_Object->_get_incidents()

This param doesn't exist anymore
Admin_Reports_Api: Extend Incident_Api so we can accept sort, limit and orderfield parameters
Allow querying admin reports by incident id
Stop API requests being authenticated by users session #652

* API requests are stateless so should ignore sessions
* API requests should authenticate on EVERY request
Stop API requests being authenticated by users session #652

* API requests are stateless so should ignore sessions
* API requests should authenticate on EVERY request
Switching queries to use query binding #645
Allow sending private message by any of email/username/name Closes #647

* Also add error messages
Hack to allow running ushahidi from CLI #666
Backport Database lib features from KO3 #645

* Allow named bindings in db->query()
  ie. use :id instead of ?
* Add Database_Expression library to allow using mysql functions etc
* Automatically handle binding/escaping arrays
Convert queries to use query binding #645

* Converting category check query in admin/reports controller
Clean up json/timeline queries and use query binding #645

* Combine multiple queries into 1 with subqueries
* Serve result as json content-type
* Fix SQLi from media type
* Use query binding for timeline query
* Return 0 counts when no reports present (instead of no data)
  This is so the graph library still plots something