Finished search function.
Fixed a bug that home.xml may be redirected to XBMC's home.