support server-side schema imports and connect.js

All necessary code changes for this improvements are implemented. I am check the "xml" parameter for a starting '<' to maintain backwards compatibility.

I also added some support for connect.js. The support is pretty basic. It has checks if the server object that is being passed has a "use" method. If this is the case I use that method instead of the event emitter.