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.
Corrected indentation of hashrate.php, and made all of the hashrate and share counts actual numeric values. Two of the sets were sending them back as strings.
Merge branch 'master' of git://github.com/logiclrd/wizstats into logiclrd-master