Set a session id on our server ssl context in m_ssl_openssl. It is required for some clients which try to restore SSL sessions.
m_ssl_openssl Fix memory leaks on /rehash ssl, unload and in VerifyCertificate()
m_banredirect Fix typo in a message (transfered -> transferred)

Fixes issue #757 reported by @guikcd
Fix new file descriptor debug log message in socketengine_poll to show the correct events
socketengine_epoll Initialize CurrentSetSize (only used by m_httpd_stats)
Move socketengine stats into a new class
Change all socketengine methods to be static
Queue changes in socketengine_kqueue and submit them as we poll for new events
Call DelFd() and SetFd(-1) from SocketEngine::Close(EventHandler*)
Store the EventHandler* in the kevent/epoll_event/portev struct

This removes the need to call GetRef() for every socket in DispatchEvents()
Replace DummyExtItem with a flag in Extensible
Fix various problems detected by Clang 3.4.

- cidr.cpp: remove inverted_bits; unused since 9fad3ecb9215a0034bf407f192926b04cb5efaed.
- cmd_stats.cpp: remove needless inversion and comparison to 0.
- inspircd.cpp: remove needless comparison to 0.
- socket.cpp: remove all_zero; unused since 03a1bf15b1da7643b237c22db1a478916a976ccf.
m_sqlauth Allow the client certificate fingerprint to be used in the SQL query

Idea by @m4z
m_operjoin Remove duplicated code
Wait for the manager bind to come back before sending search in LDAP modules
Remove redundant null pointer check from m_ldapauth
socketengine_select Reset the values in the timeval struct on *nix before select()
Remove support for advertising the SSL ports in RPL_ISUPPORT.

- No other IRC servers implement this.
- No IRC clients I can find support this.
Return a Membership* from get_first_visible_channel() in cmd_who and pass that to modules
Move GetPrefixChar() from Channel to Membership