pools: Revert back to "Pool N" default pool name, and use json_array_index to set it.

Closes https://github.com/veox/sgminer/issues/51

Using j_a_i allows us to get rid of accounting vars like total_poolnames,
and pool names don't get mixed up if they're not specified for some pools.

It would still be desirable to show the URL as a pool name if poolname is not
set.
Add API_KHS endpoint.

Fix multiplying before double cast.

Add endpoint to response.

Fix API response function.

Fix var name.

Add KHS to API summary.
Merge pull request #59 from perryh/add_api_khs

Add API_KHS endpoint.
ui: Don't display pool list N times if N pools are set hidden in config.

Also, add some comments do #endif's.
misc: Update AUTHORS (add Perry Huang, reorder).
doc: Update BUGS.md to ask whether using precompiled binary.
kernel: add psw kernel.
kernel: make psw usable, reorder cases alphabetically.

Closes https://github.com/veox/sgminer/issues/30
doc: update KERNEL.md.
Adding definition for psw's kernel name.
Merge pull request #64 from bigchirv/patch-1

Adding definition for psw's kernel name.
Replace second ZUIKKIS_KERNNAME for PSW_KERNNAME

Build still broken:

sgminer.c: In function âwrite_configâ:
sgminer.c:4193: error: âPSW_KERNNAMEâ undeclared (first use in this function)
sgminer.c:4193: error: (Each undeclared identifier is reported only once
sgminer.c:4193: error: for each function it appears in.)
Merge pull request #69 from Oriumpor/patch-2

Replace second ZUIKKIS_KERNNAME for PSW_KERNNAME
help: temp-target and temp-overheat had identical descriptions that do not describe what they actually do.

Closes https://github.com/veox/sgminer/issues/65
build: fix AC_INIT string of configure.ac.

As specified in https://www.gnu.org/software/autoconf/manual/autoconf-2.69/html_node/Initializing-configure.html
build: use git version if available.

Borrowed from Arch Linux pacman:

https://projects.archlinux.org/pacman.git/tree/
Add descriptive adl errors
Merge remote-tracking branch 'deba12/master'
adl: rename adl_errors() to adl_error_desc(), shorten error desc's, handle unknown error
core: change default scantime/expiry to 7/28 (back to 1:4 ratio).

Previous defaults (before 10/30) were optimised for Bitcoin that has
a much higher average block time. Optimise for Litecoin (currently
largest scrypt network.)

Not pushing it further down so as not to scare people with dropping
hashrates.

Thanks to MissedOutOnBTC @ freenode for testing.

Closes https://github.com/veox/sgminer/issues/22