User search finished

The search function is now all done on the index page, which is now
AJAX'd.
The actual searching function is done as a class method.