Adding further IFNULL checks to statistics class
Changed error catching in pools page
Adding link to JSON API to server stats page
Adding getpoolstatus API Method

Fixes #369
Merge pull request #370 from TheSerapher/issue-369

Issue 369