Merge pull request #1116 from jygaulier/fix-PHRAS-65

[3.8.6][PHRAS-65] Subdef creation by type
Add reconnectable statement
Fix tests
Merge pull request #1045 from nlegoff/refactor-connection

[3.8.6][PHRAS-71] Add reconnectable statement
 fix bug in firefox