Add support for torrent url and torrent file.

This is first of two PRs.

* changed processing of magnet link, now magnet link can be link to torrent file.
* added new parameter 'file' for support torrent file url.

@steeve, please check first and foremost syntax.