Fix heartbleed module

-) incorrect length read
-) Parse TLS errors
Added RFC link
Fix case / when indention
Land #3211, @Firefart's heartbleed comment reference