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 local torrent file path.

@steeve, please check first and foremost syntax.