Bring rTorrent client into basic working condition

There's still a lot to be implemented, but listing torrents and their details is in a working condition.
Also a minor js fix