Now storing established context and using it for messages without
provided context.
Refactored, now using cached handles, if the context or card handles
are NULL.
Removed printf.
Fixed a command line handling bug crashing the client.
Fixed invalid preprocessor check.
Resource clean up unified in functions to avoid accidental leaks.
Fixed accidental double free by realloc.
Fixed length check against wrong variable.
Merge branch 'smartcard_context_fix' of https://github.com/akallabeth/FreeRDP into smartcard