Truncate long search strings

Search query strings must not exceed 255 characters; they will be
truncated if they do. Also added embedly library for Travis.
Merge pull request #316 from mope/313-query-string-crash

Truncate long search strings