Search in a specific managed object context

As discussed in issue, I added the ability to specify a managed object context for a search. 

(Please excuse some of the whitespace differences.)

Cheers