Put ordering directly in SQL query.

Specifying the ordering using a bound parameter doesn't error, but
neither does it work. It is ordering by the string provided as if it
were a value, not the column wanted.
Add tests for getting Hansard data by date.

Specifically intended to test ordering of results. Covers changes made
in 598739586493461454100df08a445f66f67a12f3.

Rearranges fixture to provide intentionally out-of-order data.
Replace missing bracket in people search functionality.

Fixes #693.
Remove exists_rep_image, it's no longer used
Extract function for determining a party colour to a utility class.
Extract function for finding a member's image to a utility class.
Move existing namespaced classes to subfolder

This allows for the autoloading of classes in the root namespace, ie the
rest of TheyWorkForYou.
Move MEMBER class to use autoloading
Move postcode functions to autoloadable utility class
Move Gaze to the Utility namespace (for consistency)
Move constituency functions to autoloadable utility class
Fix case of Utility folder

Travis is particularly caring of the case of folders, even though PHP
doesn't care (and will be happy with all commits to this point anyway)
Move calendar functions to autoloadable utility class
Move alert utility functions to autoloadable utility class
Move ALERT class to use autoloading
Move URL class to use autoloading
Extract the THEUSER class and make it autoloadable
Move USER class to use autoloading
Move SEARCHLOG class to use autoloading
Move search engine utility functions to autoloadable utility class.