allow mining any n-factor coin

command line options for nfmin, nfmax, and starttime added
reorganize code - match YACMiner where appropriate
change algorithm name to scrypt-chacha but allow scrypt-jane to still
work
CPU affinity fix for FreeBSD

issue fix from pooler's main branch
Do not switch to Stratum if using an HTTP proxy

cloned from pooler's repository
Initialize sched_priority to 0

cloned from pooler's repository