Separated code for index and search actions, and moved many shared things into separate methods.  The before filter for the old method is removed. Changes for 'Incorrect behavior on clicking user name of related proposal.' implemented.