Some cleanups regarding signal handling and shutdown.
Fix killing of OSCam when it is hanging on binding to ports.
Fix a small warning that reared its head after signal cleanups.

Fixes ticket #3141.
Add support for DGCrypt CAS.

Release early, release often. The reader should be working although
there maybe some issues with csctapi protocol handling. These can
be worked out once enough people start testing the code.

Thanks to Bruty 12 for the code and testing.
Fix removing of oscam.version.

Always delete oscam.version file on exit.
Introduce get_tmp_dir_filename() function.
Move all cleanup function calls in main().
lcd: Fix compilation error that was introduced in r8309.

Since the module is not in defconfig it escaped my testing.
dgcrypt: Fix writing of ECMs
Add "ecmnotfoundlimit" reader setting.

ecmnotfoundlimit setting is compared to the number of ECM NOKs
returned by the reader. Once ECM NOKs are equal to ecmnotfoundlimit,
the reader is restarted.

Sometimes cards start answering with "not found" for some SIDs and
only restart of the reader causes them to operate normally. This
setting helps in that case.

The problem was observed with NDS SkyUK card.

That setting defaults to 0 (no limit).
dgcrypt: Add support for get_caid and get_cardver commands.

If these commands fail, do not fail reader initialization.
 Documentation for new parameter 'ecmnotfoundlimit'.
dgcrypt: Fix warning seen in 64 bit compilations.
Do not change process name of the main process.

By mistake the main process name was changed which prevented
certain versions of pkill and killall to work properly.

Thanks to beneee who demonstrated the bug.
Revert "dgcrypt: Add support for get_caid and get_cardver commands."

This reverts commit r8314.

Apparently the card locks up after get_CAID command.
log: Prevent harmless warning.

Prevent unused parameter warning when WEBIF, MODULE_MONITOR and
CS_ANTICASC are disabled.
config: Add proper control of WITH_CARDREADER setting.

WITH_CARDREADER must be enabled if any of the readers and cardreaders are enabled.
WITH_CARDREADER must be disabled if all readers and cardreaders are disabled.
config: Give external defines values.

Just having something defined is OK but having it defined with
certain value is a lot better.
config: Move compatability defines out of config-funcs.h into globals.h

This is in preparation for removing config-funcs.h file.
config: Simplify config.h

Remove config guards also give config variables values. This would
allows us to delete config-funcs.h.