Add ranking query to external search process

Also include the ranking parameters in the movie.to_json()
Fix broken test