corrected confusion over max vs num
added caching of torrent pages
new unit test for webapi
misc changes and bug fixed identified in unit test