Added more abstraction layers for the plugin.

- Query param
- Class wrapper for the search results.