Code cleanup.
Code formatting.
Join state now timeouts correctly as defined in RFC 5145.
Furthermore introduced a dbg prints...
Uses a local opensssl library, because the openlibrary must be patched.
Sets (hard-coded for now) some of the new dbg options.
Changed debug options.
Removed a lot of anoying printfs, changed some SSL options.
Code cleaning.