Extra APi stats, imported from p2pool-n

https://github.com/mmouse- wrote some extra API calls used by the interface for https://github.com/donSchoe/p2pool-n/pull/7. Made a diff to get them into other forks still tied to original repo.