search parameter name change  to "query" by "search"
search function move to services
change search URL to the appropriate URL
add test for search function
Merge pull request #6 from y-yagi/refactor_search_function

Refactor search function