Merge pull request #484 from kanoi/master

BTB show C/MHz/mV for device + api.c remove unused reply string
Substantially raise the maximum avalon frequency for water-cooled, over-volted designs.
Only count submitted nonces as diff1shares if they're valid.
miner.php fix missing global
cgtimer_sub is now the same since cgtimer_t should be the same on all platforms.
Move two more timer functions out of define macros to enable them to be used by future osx code.
Provide an osx fix for cgtimers and a fallback to timevals for all other platforms !linux !win32 !osx.
Merge branch 'master' of github.com:ckolivas/cgminer
Fix OSX build.
Update included jansson to v2.4
Fix no -rt library on darwin.
Provide a funcion that looks up queued work by midstate and then removes it from the device hash database.
Use take_queued_work_bymidstate in the bflsc driver to avoid the rare chance repeated results come back from the same work item.
bflsc xlinkstr use snprintf