Search and Profile messages now use AJAX

The messages displayed in searches and on profiles now use the AJAX load
more messages feature.