Refactored autocomplete search to use the json from server directly.
Added type_name to json format of media_item.
Made search_field use the type_name directly from media_item.