Added support for a separate endpoint returning hashrate stats in JSON format:
- Factored the hashrate computation logic out of userstats.php into new file hashrate.php.
- Added new endpoint hashrate-json.php that uses hashrate.php in much the same way as userstats.php, but outputs only the hashrate table information formatted as JSON.