WebUI: Implement server-side filtering, sorting and limit/offset.

Now you can use ```json/torrents``` request with ```filter``` parameter to retrieve filtered torrents.
Example: ```http://localhost:8080/json/torrents?filter=active```