Create a new shared find_best_GWS. In the process, created a new shared find_best_LWS (both use the same events names).
It can be used without problems on sha256crypt and sha512crypt. I see no problems using this on 'my' fast hashes. More review is necessary to assure it can be used in every format in the jungle.
Remove debug code.
Fix a problem in legacy --platform devices detection.
Use macros to proper detect the environment.
Use a shared function to get LWS and GWS from environment variables or config file.
All 'my' formats the shared function created at a1191d7ea43937825973587532e76db04372293c.
Move the CUDA device parsing to cuda_init() and move the latter to
common-cuda.c (built by gcc, to nvcc).