Created ManageSearch.subs.php and filled with a couple of functions

Signed-off-by: emanuele <emanuele45@gmail.com>
Tentative to make the code less "db_type-dependent": moved the reading of messages table data to the BdSearch class (I'm not sure it's the best place, but should work for now)

Signed-off-by: emanuele <emanuele45@gmail.com>
Some other queries and stuff moved out from ManageSearch.controller.php

Signed-off-by: emanuele <emanuele45@gmail.com>
And ManageSearch.controller is query-free as well

Signed-off-by: emanuele <emanuele45@gmail.com>
Merge pull request #929 from emanuele45/managesearch

ManageSearch