WebUI: Implement server-side filtering.

Now you can use ```json/torrents``` request with ```filter``` parameter to retrieve filtered torrents.
Example: ```http://localhost:8080/json/torrents?filter=active```

Server-side sorting/limiting coming soon!
I just implemented Server-side sorting, but WebUI don't support it still.
This too. The code looks very similar to TorrentModelItem::state, perhaps it should be shared?