Fix search code so that it loads lazily and omits observers during rake tasks. Fixes #7.