WebUI: Implement server-side filtering.

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