Fix found by Jim Starkey man-in-themiddle attack on ATTACH packet. 
That packet may contain database name, command line for service and/or some other important and critical information.
To avoid such attack wire encryption is started before attaching database or service manager, right after connect.
Also should fix a number of issues found in Alpha1 regarding services attach.



git-svn-id: svn+ssh://svn.code.sf.net/p/firebird/code/firebird/trunk@58698 65644016-39b1-43b1-bf79-96bc8fe82c15