Bug 840210 - search engine must be customizable at build time

WIP:
work in nightly
but cannot lazyload on device