[mms] Fix search in Facebook driver.

Search query can contain nested 'ANDs' and 'ORs', so that needs to be
handled.

Additionally, cache key was completely broken since implode() won't work
on the multi-level $criteria array.
[mms] Don't send as multipart/alternative if plaintext part is empty.