lazy get SSL state from socket
(cherry picked from commit 5e2233c)
#135 middleware as a functional interface
#135 move abstract class to middleware package
#107 simple papercut fix
#136 move away Container constructor dependency