Added search function and related AJAX resources.