SSL session cache.

Enables session cache in SSL plugin polarssl.
Fixes synchronization issues when used with polarssl compiled without threading support.
Fixes error where connection isn't terminated by fatal alert from polarssl.
Drops support for polarssl 1.1.