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.