Fix the problem of seting up termio of ttyUSB0 for icarus. the CSIZE
 is the mask of CS2/4/8
From: navyxliu <navy.xliu@gmail.com>
Show a different warning and loglevel for failure to resolve a URL on first or subsequent testing of stratum pool URLs.
Update the write config to properly record device entries and remove disabled option.
Support more shares to be returned for scrypt mining.
Use a scantime of 30 seconds for scrypt if none is specified.
Minor typo.
Regenerate the hash before checking the share diff in hashtest().
Further consolidate the hash regeneration between sha and scrypt doing it only once and always checking the share diff for both before submission.
Make set_work_target a function to set a specified char as target for use elsewhere.
Use a discrete device target for scrypt that dynamically changes to ensure we still report a work utility even if no shares are submitted such as in solo mining.
Merge branch 'master' into avalon-dev